@@ -5,14 +5,10 @@ First, create the Jenkins base infra:
55```
66oc process -l app=coreos-ci \
77 -p ENABLE_OAUTH=false \
8- -p NAMESPACE=coreos-ci \
98 -p STORAGE_CLASS_NAME=ocs-storagecluster-ceph-rbd \
109 -f https://raw.githubusercontent.com/coreos/fedora-coreos-pipeline/main/manifests/jenkins.yaml | oc create -f -
1110```
1211
13- Change the ` NAMESPACE ` parameter if you're not targeting one
14- named ` coreos-ci ` .
15-
1612We turn off the default OpenShift authentication because we
1713will use GitHub instead.
1814
@@ -122,13 +118,38 @@ If working on your own fork/branch, you can point the
122118` JENKINS_JOBS_URL ` and ` JENKINS_JOBS_REF ` parameters to
123119override the repo in which to look for jobs.
124120
121+ ### Create Dummy root CA certificate secret
122+
123+ The root CA certificate (ca.crt) is required, but not needed for CoreOS CI
124+ so we create a dummy one here.
125+
126+ ```
127+ cat <<'EOF' > ca.crt
128+ dummy
129+ EOF
130+ ```
131+ Then create the secret:
132+
133+ ```
134+ oc create secret generic additional-root-ca-cert \
135+ --from-literal=filename=ca.crt --from-file=data=ca.crt
136+ oc label secret/additional-root-ca-cert \
137+ jenkins.io/credentials-type=secretFile
138+ oc annotate secret/additional-root-ca-cert \
139+ jenkins.io/credentials-description="Dummy Root CA certificate"
140+ ```
141+
125142### Jenkins
126143
127144Now we can set up the Jenkins S2I builds. We use the same
128145settings as the FCOS pipeline to ensure that the environment
129146is the same (notably, Jenkins and plugin versions):
130147
131148```
149+ oc process -l app=coreos-ci \
150+ -f https://raw.githubusercontent.com/coreos/fedora-coreos-pipeline/main/manifests/jenkins-images.yaml | oc create -f -
151+ oc process -l app=coreos-ci \
152+ -f https://raw.githubusercontent.com/coreos/fedora-coreos-pipeline/main/manifests/jenkins-with-cert.yaml | oc create -f -
132153oc process -l app=coreos-ci \
133154 -f https://raw.githubusercontent.com/coreos/fedora-coreos-pipeline/main/manifests/jenkins-s2i.yaml | oc create -f -
134155```
@@ -138,10 +159,12 @@ If working on your own fork/branch, you can point the
138159override the repo in which to look for the Jenkins S2I
139160configuration.
140161
141- Then start a build :
162+ Then start the builds :
142163
143164```
144- oc start-build jenkins-s2i
165+ oc start-build --follow jenkins-with-cert
166+ oc start-build --follow jenkins-agent-base-with-cert
167+ oc start-build --follow jenkins-s2i
145168```
146169
147170And that's it! It's already set up so that jobs will be
0 commit comments