create continuous delivery pipeline
pre-condition we have 5 jobs to create our pipeline:
- continuous delivery job
- sonar
- deployment
- smoketest
- suitetest
1. Install Parameterized Trigger plugin a
- click in the menu on Manage Jenkins
- click on Manage Plugins
- select the Available tab
- search for Parameterized Trigger plugin
![parameterized trigger plugin](https://drive.google.com/uc? id=0B8J22dDh67I9YW5kUER0UWRuMXM)
- select the plugin and click on the Install without restart button
- jenkins navigates to the Installing plugins/upgrades page, were we see an overview of the plugins to be installed.
- stop the tomcat instance and start the instance again
- we start the tomcat instance for jenkins by executing the tomcat jenkins - start.cmd script
- open a browser and navigate to: http://localhost:8075/jenkins/job/wsaccountstatus_ci/
- click on the Configure link
- check the checkbox This build is parameterized(if it is not done)
- add a String Parameter
- Name: PLGITCOMMIT
- Default Value: develop
- Description: From which branch the latest revision is used
- navigate to Branches to build
- and set the value to ${PLGITCOMMIT}
2.2 setting up the downstream project
- navigate tot the Post-build Actions section of the job
- add post-build action by clicking on Add post-build action
- select Trigger parameterized build on other projects
- Projects to build: wsaccountstatus_sonar,
- Trigger when build is: Stable
- Add Parameters: current build parameters
- open a browser and navigate to: http://localhost:8075/jenkins/job/wsaccountstatus_sonar/
- click on the Configure link
- check the checkbox This build is parameterized(if it is not done)
- add a String Parameter
- Name: PLGITCOMMIT
- Default Value: develop
- Description: From which branch the latest revision is used
- navigate to Branches to build
- and set the value to ${PLGITCOMMIT}
3.2 setting up the downstream project
- navigate tot the Post-build Actions section of the job
- add post-build action by clicking on Add post-build action
- select Trigger parameterized build on other projects
- Projects to build: wsaccountstatusdeployto_test,
- Trigger when build is: Stable
- Add Parameters: current build parameters
- open a browser and navigate to: http://localhost:8075/jenkins/job/wsaccountstatusdeployto_test/
- click on the Configure link
- check the checkbox This build is parameterized(if it is not done)
- add a String Parameter
- Name: PLGITCOMMIT
- Default Value: develop
- Description: From which branch the latest revision is used
- navigate to Branches to build
- and set the value to ${PLGITCOMMIT}
4.2 setting up the downstream project
- navigate tot the Post-build Actions section of the job
- add post-build action by clicking on Add post-build action
- select Trigger parameterized build on other projects
- Projects to build: wsaccountstatus_smoketest,
- Trigger when build is: Stable
- Add Parameters: current build parameters
- open a browser and navigate to: http://localhost:8075/jenkins/job/wsaccountstatus_smoketest/
- click on the Configure link
- check the checkbox This build is parameterized(if it is not done)
- add a String Parameter
- Name: PLGITCOMMIT
- Default Value: develop
- Description: From which branch the latest revision is used
- navigate to Branches to build
- and set the value to ${PLGITCOMMIT}
5.2 setting up the downstream project
- navigate tot the Post-build Actions section of the job
- add post-build action by clicking on Add post-build action
- select Trigger parameterized build on other projects
- Projects to build: wsaccountstatus_suitetest,
- Trigger when build is: Stable
- Add Parameters: current build parameters
- also add Predefined parameters
- SUITETORUN=FitNesse.SuiteAcceptanceTests.SuiteSlimTests
6. Install Build Pipeline plugin a
- click in the menu on Manage Jenkins
- click on Manage Plugins
- select the Available tab
- search for Build Pipeline plugin
- select the plugin and click on the Install without restart button
- jenkins navigates to the Installing plugins/upgrades page, were we see an overview of the plugins to be installed.
- stop the tomcat instance and start the instance again
6.1 create view
- click on the add new View
- add pipeline view, to click on the + button
- Name overviewtab: wsaccountstatuscdpipeline
- select the Build Pipeline View radiobutton
- name: wsaccountstatuscdpipeline
- Description: Continuous Delivery Pipeline for Webservice Account Status
- Build Pipeline View Title: Continuous Delivery Pipeline for Webservice Account Status
- Select Initital Job: wsaccountstatus_ci
- click on the re-run button to start the pipeline