diff --git a/HACKING.md b/HACKING.md index 0d4c34914..d2cdc703c 100644 --- a/HACKING.md +++ b/HACKING.md @@ -165,6 +165,18 @@ reason we create the app first is that otherwise OpenShift will automatically instantiate Jenkins with default parameters when creating the Jenkins pipeline). +Next, let's update the input ImageStreamTag for our jenkins deployment +to match latest openshift (`jenkins:2`). Some older versions of the +template in openshift uses `jenkins:latest`. This will no longer be +needed once we are running on a newer version of OpenShift than 3.6 in +CentOS CI. See [#32](https://github.com/coreos/fedora-coreos-pipeline/pull/32) +and [#70](https://github.com/coreos/fedora-coreos-pipeline/pull/70) +for context on why this may be needed): + +``` +oc patch dc/jenkins -p '{"spec":{"triggers":[{"imageChangeParams":{"automatic":true,"containerNames":["jenkins"],"from":{"kind":"ImageStreamTag","name":"jenkins:2"}},"type":"ImageChange"},{"type":"ConfigChange"}]}}' +``` + ### Create the pipeline from the template If working on the production pipeline, you may simply do: diff --git a/manifests/pipeline.yaml b/manifests/pipeline.yaml index f3bc45e2c..d09c5ebfc 100644 --- a/manifests/pipeline.yaml +++ b/manifests/pipeline.yaml @@ -87,7 +87,7 @@ objects: output: to: kind: ImageStreamTag - name: jenkins:latest + name: jenkins:2 successfulBuildsHistoryLimit: 2 failedBuildsHistoryLimit: 2