This pipeline is an enhancement to the previous sample of a gated pipeline with notifications and contains a dynamically updated gated job name along with an additional email notification after its successful complete execution.
The case for the dynamically updated gated job name is the fact that, without it, a release manager would have to dig into the pipeline UI in order to figure out which version of the validated resource will be deployed once he/she manually triggers the job.
By updating the gated job name with the validated version number, it will be clear for the release manager which version is expected to be deployed once the gated job is manually triggered.
The pipeline definition file for the sample above is available here.
To create the sample pipeline in your concourse server:
-
download file gated-pipeline-03-shipit-enhanced.yml
-
edit
gated-pipeline-03-shipit-enhanced.yml
update the entries below:- YOUR-SENDER-EMAIL-GOES-HERE: replace it with your sender email address
- [YOUR-EMAIL-GOES-HERE]: replace it with your destination email addresses separated by comma and keep the brackets
-
download file params.yml
-
edit
params.yml
and replace the variables with the appropriate values.
The concourse credentials are required for the auto-update of the "Ship-version-XXX" gated job label.
The github token is needed to avoid the github API limit error for the targeted repository. -
issue the following fly command:
fly -t <your-concourse-alias> set-pipeline -p shipt-it-enhanced -c gated-pipeline-03-shipit-enhanced.yml -l params.yml
Once the pipeline is unpaused in Concourse, it will:
-
Automatically execute the first two jobs (
Build-It
andTest-It
) for every new release of the monitored repository -
Update the
Ship-version-XX
gated job name with the version number of the new verified release. e.g.Ship-version-2.7.0
. This provides a more descriptive and objective name for the gated job, so release managers will know the exact version that will be deployed just by glancing at the pipeline UI. -
Notify via e-mail the release managers to review and take action in order to proceed with the deployment of the newly verified release
-
Proceed with the deployment execution only after the release manager manually triggers the gated job (e.g. click on the
Ship-version-XXX
job and then click on its+
icon)