Triggering pipelines with Jenkins
This guide assumes that you have enabled the
artifactsRewrite
feature flag. See Prerequisites.
This guide explains how to add a Jenkins trigger to your pipeline.
Prerequisites
- Set up Jenkins as a continuous integration system in your Spinnaker deployment.
- Enable the
artifactsRewrite
feature flag in Spinnaker. In~/.hal/$DEPLOYMENT/profiles/settings-local.js
(where$DEPLOYMENT
is typicallydefault
), add the linewindow.spinnakerSettings.feature.artifactsRewrite = true;
.
Adding a Jenkins trigger
- Create a pipeline.
- In the Configuration stage of your new pipeline, add a trigger.
-
Select Jenkins from the Type menu, which brings up the following screen:
- Select a Jenkins master from the Master drop-down menu, then select a job from the Job drop-down.
- Add a property file, if desired. See the property files section of the Pipeline Expression Guide for more information about how to specify and use property files.