Skip to content

Commit b1bcc56

Browse files
committed
HACKING: update bringup notes to account for fedora-coreos-pipeline changes
The pipeline was updated to change the structure of the jenkins images dependency chain in [1] so we needed to update the notes here. [1] coreos/fedora-coreos-pipeline#1151
1 parent 0270f15 commit b1bcc56

File tree

1 file changed

+29
-6
lines changed

1 file changed

+29
-6
lines changed

HACKING.md

Lines changed: 29 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,10 @@ First, create the Jenkins base infra:
55
```
66
oc 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-
1612
We turn off the default OpenShift authentication because we
1713
will 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
123119
override 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

127144
Now we can set up the Jenkins S2I builds. We use the same
128145
settings as the FCOS pipeline to ensure that the environment
129146
is 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 -
132153
oc 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
138159
override the repo in which to look for the Jenkins S2I
139160
configuration.
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

147170
And that's it! It's already set up so that jobs will be

0 commit comments

Comments
 (0)