Skip to content

Commit d7a61d5

Browse files
committed
manifest: add jenkins-stg-agent-base.yaml due to staging limitations
Added jenkins-stg-agent-base.yaml to work around limitations in the Staging environment. Also updated documentation to note the unreliability of the Staging registry and instructed users to use their own agent image. Signed-off-by: Renata Ravanelli <[email protected]>
1 parent 4f828f2 commit d7a61d5

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

HACKING.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,8 @@ using a development cluster, it normally isn't, and you can drop it. For
532532
the Fedora prod cluster, use `ocs-storagecluster-ceph-rbd` as shown
533533
above.
534534

535-
If using an additional root CA certificate, then you will also need to
535+
If using an additional root CA certificate, or working with Fedora staging
536+
pipeline, then you will also need to
536537
specify the `AGENT_NAMESPACE` parameter to yours, e.g.:
537538

538539
```
@@ -594,6 +595,16 @@ oc start-build --follow jenkins-with-cert
594595
oc start-build --follow jenkins-agent-base-with-cert
595596
```
596597

598+
If you're working with the Staging environment, keep in mind that the registry
599+
is not well maintained. This can lead to issues due to mismatched agent images.
600+
To avoid problems, let's use our own image instead. Make sure you’re in the
601+
manifest directory and set the AGENT_NAMESPACE to your current namespace (not
602+
openshift) when creating the Jenkins instance, as shown above.
603+
604+
```
605+
oc apply -f jenkins-stg-agent-base.yaml
606+
```
607+
597608
We can now start an S2I build of the Jenkins controller:
598609

599610
```

manifests/jenkins-stg-agent-base.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
kind: ImageStream
2+
metadata:
3+
name: jenkins-agent-base
4+
spec:
5+
lookupPolicy:
6+
local: true
7+
tags:
8+
- name: latest
9+
from:
10+
kind: DockerImage
11+
name: registry.redhat.io/ocp-tools-4/jenkins-agent-base-rhel8:v4.13.0
12+
forcePull: true
13+
importPolicy:
14+
scheduled: true
15+
referencePolicy:
16+
type: Source

0 commit comments

Comments
 (0)