@@ -12,36 +12,36 @@ parameters:
12
12
- description : Git branch/tag reference for Jenkins S2I
13
13
name : JENKINS_S2I_REF
14
14
value : main
15
- - description : Source imagestream
16
- name : JENKINS_S2I_SRC_IMAGESTREAM_NAME
17
- value : jenkins:scheduled-upgrade-redeploy
18
- - description : Namespace of source imagestream
19
- name : JENKINS_S2I_SRC_IMAGESTREAM_NAMESPACE
20
- value : openshift
15
+ - description : Pull spec for Jenkins image
16
+ name : JENKINS_S2I_PULL_SPEC
17
+ value : registry.redhat.io/ocp-tools-4/jenkins-rhel9:v4.17.0
18
+ - description : Pull spec for Jenkins image base
19
+ name : JENKINS_AGENT_PULL_SPEC
20
+ value : registry.redhat.io/ocp-tools-4/jenkins-agent-base-rhel9:v4.17.0
21
21
22
22
# Here's what the flow looks like when no cert is required:
23
23
#
24
- # ┌──────────────────────────────────────────────┐ ┌─────────────┐ ┌─────────────┐
25
- # │ imagestream │ │ buildconfig │ │ imagestream │
26
- # │ openshift/jenkins:scheduled-upgrade-redeploy ├──►│ jenkins-s2i ├──►│ jenkins:2 │
27
- # └──────────────────────────────────────────────┘ └─────────────┘ └─────────────┘
24
+ # ┌────────────────────────────────────────────────────── ┐ ┌─────────────┐ ┌─────────────┐
25
+ # │ Pull spec │ │ buildconfig │ │ imagestream │
26
+ # │ registry.redhat.io/ocp-tools-4/jenkins-rhel9:v4.17.0 ├──►│ jenkins-s2i ├──►│ jenkins:2 │
27
+ # └────────────────────────────────────────────────────── ┘ └─────────────┘ └─────────────┘
28
28
#
29
- # ┌────────────────────────────────────────────────┐
30
- # │ imagestream │
31
- # │ openshift/ jenkins-agent-base:scheduled-upgrade │
32
- # └────────────────────────────────────────────────┘
29
+ # ┌─────────────────────────────────────────────────────────────────┐ ┌─────────────────────────── ┐
30
+ # │ Pull spec │ │ imagestream │
31
+ # │ registry.redhat.io/ocp-tools-4/ jenkins-agent-base-rhel9:v4.17.0 │──►│ jenkins-agent-base:latest │
32
+ # └─────────────────────────────────────────────────────────────────┘ └─────────────────────────── ┘
33
33
#
34
34
# And with cert required (see `jenkins-with-cert.yaml`):
35
35
#
36
- # ┌──────────────────────────────────────────────┐ ┌───────────────────┐ ┌────────────────┐ ┌─────────────┐ ┌─────────────┐
37
- # │ imagestream │ │ buildconfig │ │ imagestream │ │ buildconfig │ │ imagestream │
38
- # │ openshift/ jenkins:scheduled-upgrade-redeploy ├──►│ jenkins-with-cert ├──►│ jenkins:latest ├──►│ jenkins-s2i ├──►│ jenkins:2 │
39
- # └──────────────────────────────────────────────┘ └───────────────────┘ └────────────────┘ └─────────────┘ └─────────────┘
36
+ # ┌─────────────────────────────────────────────────────── ┐ ┌───────────────────┐ ┌────────────────┐ ┌─────────────┐ ┌─────────────┐
37
+ # │ Pull spec │ │ buildconfig │ │ imagestream │ │ buildconfig │ │ imagestream │
38
+ # │ registry.redhat.io/ocp-tools-4/ jenkins--rhel9:v4.17.0 ├──►│ jenkins-with-cert ├──►│ jenkins:latest ├──►│ jenkins-s2i ├──►│ jenkins:2 │
39
+ # └─────────────────────────────────────────────────────── ┘ └───────────────────┘ └────────────────┘ └─────────────┘ └─────────────┘
40
40
#
41
- # ┌────────────────────────────────────────────────┐ ┌──────────────────────────────┐ ┌───────────────────────────┐
42
- # │ imagestream │ │ buildconfig │ │ imagestream │
43
- # │ openshift/ jenkins-agent-base:scheduled-upgrade ├──►│ jenkins-agent-base-with-cert ├──►│ jenkins-agent-base:latest │
44
- # └────────────────────────────────────────────────┘ └──────────────────────────────┘ └───────────────────────────┘
41
+ # ┌───────────────────────────────────────────────────────────────── ┐ ┌──────────────────────────────┐ ┌───────────────────────────┐
42
+ # │ Pull spec │ │ buildconfig │ │ imagestream │
43
+ # │ registry.redhat.io/ocp-tools-4/ jenkins-agent-base-rhel9:v4.17.0 ├──►│ jenkins-agent-base-with-cert ├──►│ jenkins-agent-base:latest │
44
+ # └───────────────────────────────────────────────────────────────── ┘ └──────────────────────────────┘ └───────────────────────────┘
45
45
46
46
objects :
47
47
@@ -69,9 +69,8 @@ objects:
69
69
type : Source
70
70
sourceStrategy :
71
71
from :
72
- kind : ImageStreamTag
73
- name : ${JENKINS_S2I_SRC_IMAGESTREAM_NAME}
74
- namespace : ${JENKINS_S2I_SRC_IMAGESTREAM_NAMESPACE}
72
+ kind : DockerImage
73
+ name : ${JENKINS_S2I_PULL_SPEC}
75
74
env :
76
75
- name : JENKINS_UC_DOWNLOAD
77
76
value : ' https://archives.jenkins.io'
@@ -89,3 +88,13 @@ objects:
89
88
kind : ImageStream
90
89
metadata :
91
90
name : jenkins-agent-base
91
+ spec :
92
+ lookupPolicy :
93
+ # this allows e.g. the pipeline to directly reference the imagestream
94
+ local : true
95
+ tags :
96
+ - name : latest
97
+ from :
98
+ kind : DockerImage
99
+ name : ${JENKINS_AGENT_PULL_SPEC}
100
+ forcePull : true
0 commit comments