Skip to content

Jenkins

Hrishikesh Paul edited this page Mar 29, 2021 · 7 revisions

Set Up Jenkins

Jenkins instance is deployed at: http://149.165.171.239:8080/

Download Plugins (only for local systems)

  1. Go to Manage Jenkins
  2. Click on Manage Plugins
  3. Search and install Docker Pipeline and NodeJS
  4. Restart Jenkins to apply the installed plugins

Add global configurations (already done on the cloud)

  1. Go to Manage Jenkins
  2. Click on Global Configuration Tool
  3. Add Git installation
    • Name: Default
    • Path to Git executable: git
  4. Add NodeJS installations
    • Name: node
    • Leave everything else as default
  5. Follow this tutorial to add your Docker credentials. This will ensure that once the image is built, it'll push to dockerhub.

Building a Pipeline

  1. New Item
  2. Enter Name and select Pipeline
  3. From Build Triggers select GitHub hook trigger for GITScm polling
  4. Below are the instructions for the Pipeline part,
    • Definition: Pipeline script from SCM
    • SCM: git
    • Repository URL: https://github.com/airavata-courses/scrapbook
    • Branches to build: */main-UI (or any branch)
    • Script Path: scrapbook-ui/Jenkinsfile (or any service)
    • Lightweight checkout: Checked
  5. Save

Configuring with Kubernetes Cluster

Check this link to configure CD from Jenkins to Kubernetes

Clone this wiki locally