jenkins the definitive guide

(Jeff_L) #1

into production. The full promotion strategy is illustrated in Figure 10.42, “Build jobs in the promotion
process”.


Figure 10.42. Build jobs in the promotion process


This strategy is easy to implement using the Promoted Builds plugin. Once you have installed this in
the usual way, you will find a new “Promote builds when” checkbox on the job configuration page.
You use this option to set up build promotion processes. You define one or more build promotion
processes in the initial build job of process (phoenix-default in this example), as illustrated in
Figure 10.43, “Configuring a build promotion process”. A build job may be the starting point of several
build promotion processes, some automated, and some manual. In Figure 10.43, “Configuring a build
promotion process”, for example, there is an automated build promotion process called promote-to-
test and a manual one called promote-to-uat. Automated build promotion processes are triggered by the
results of downstream build jobs. Manual promotion processes (indicated by ticking the ‘Only when
manually approved’ checkbox) can only be triggered by user intervention.

Free download pdf