This plugin provides a Build Pipeline View of upstream and downstream connected jobs that typically form a build pipeline. In addition, it offers the ability to define manual triggers for jobs that require intervention prior to execution (e.g., an approval process outisde of Jenkins).
WARNING: The current version of this plugin may not be safe to use. Please review the following warnings before use:
Continuous Integration has become a widely adopted practice in modern software development. Jenkins and Hudson are great tools for supporting Continuous Integration.
Taking it to the next level: Continous Integration can become the centerpeice of your deployment pipeline, orchestrating the promotion of a version of software through quality gates and into production. By extending the concepts of CI you can create a chain of jobs, each one subjecting your build to quality assurance steps. These QA steps may be a combination of manual and automated steps. Once a build has passed all of these, it can be automatically deployed into production.
In order to better support this process, we have developed the Build Pipeline Plugin. This gives the ability to form a chain of jobs based on their upstream and downstream dependencies. Downstream jobs may, as per the default behaviors, be triggered automatically, or by a suitable authorized user manually triggering it.
You can also see a history of pipelines in a view, the current status, and where each version got to in the chain based on it revision number in VCS.
- Install the plugin using the Jenkins Plugin Manager and restart.
- Create a view of the new type, Build Pipeline View. You will then be redirected directly to the configuration page.
- The table below outlines each interesting parameters controls:
- Navigate to the Job Configuration page.
- Scroll down to the Post-build Actions section.
- For an Automated downstream build step: To add a build step that will trigger automatically upon
the successful completion of the previous one:
- Select the Build other projects check-box.
- Enter the name(s) of the downstream projects in the Projects to build field. (n.b. Multiple projects can be specified by using comma, like "abc, def".).
- For a Manually Triggered downstream build step: To add a build step that will wait for a manual
trigger:
- Select the Build Pipeline Plugin -> Manually Execution Downstream Project check-box.
- Enter the name(s) of the downstream projects in the Downstream Project Names field. (n.b. Multiple projects can be specified by using comma, like "abc, def".).
- For an Automated downstream build step: To add a build step that will trigger automatically upon
the successful completion of the previous one:
- Click Save.
The Build Pipeline Plugin handles teh creation of multiple automatic or manually triggered downstream build steps on the same project.
When upgrading from 1.0.0 to 1.1.x some of the previous view and job configuration fields have been removed. You may notice some errors appearing in the Jenkins log:
WARNING: Skipping a non-existen field downstreamProjectName com.thoughtworks.xstream.converters.reflection.NonExistentFieldException: No such field au.com.centrumsystems.hudson.plugin.buildpipeline.trigger.BuildPipelineTrigger.downstreamProjectName
This is because the configuration files refer to old fields that may no longer exist. In order to correct these issues, go to the Job Configuration page, confirm that all of the details are correct, and click on the Save button.
The canonical reference for pipelines in the book Continuous Delivery.
Chapter 5 of the book, which describes how deployment pipelines work, is available for free.
- Apache Maven 3.0.4 or later
$ mvn clean install
- Build the project to produce
target/build-pipeline-plugin.hpi
- Remove any installation of the build-pipeline-plugin in
$user.home/.jenkins/plugins/
- Copy
target/build-pipeline-plugin.hpi
to$user.home/.jenkins/plugins/
- Start/Restart Jenkins
After a pull request is accepted, it is run through a Jenkins job hosted on CloudBees.