Skip to content

Commit

Permalink
Update docs so we can use jenkins:2
Browse files Browse the repository at this point in the history
Update the docs so that we can be more compatible with latest templates.
We update the input ImageStreamTag for our Jenkins deployment to match
latest OpenShift (`jenkins:2`)

related: #32
  • Loading branch information
dustymabe committed Jun 11, 2019
1 parent 3602be5 commit 28ab585
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions HACKING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion manifests/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ objects:
output:
to:
kind: ImageStreamTag
name: jenkins:latest
name: jenkins:2
successfulBuildsHistoryLimit: 2
failedBuildsHistoryLimit: 2

Expand Down

0 comments on commit 28ab585

Please sign in to comment.