-
Notifications
You must be signed in to change notification settings - Fork 10
Jenkins
Hrishikesh Paul edited this page Mar 29, 2021
·
7 revisions
Jenkins instance is deployed at: http://149.165.171.239:8080/
- Go to Manage Jenkins
- Click on Manage Plugins
- Search and install Docker Pipeline and NodeJS
- Restart Jenkins to apply the installed plugins
- Go to Manage Jenkins
- Click on Global Configuration Tool
- Add Git installation
- Name: Default
- Path to Git executable: git
- Add NodeJS installations
- Name: node
- Leave everything else as default
- Follow this tutorial to add your Docker credentials. This will ensure that once the image is built, it'll push to dockerhub.
- New Item
- Enter Name and select Pipeline
- From Build Triggers select GitHub hook trigger for GITScm polling
- 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
- Save
Check this link to configure CD from Jenkins to Kubernetes