Skip to content

Commit ac3756d

Browse files
authored
Merge pull request #48678 from rolfedh/RHDEVDOCS-4266
RHDEVDOCS-4266 Jenkins questions
2 parents 1042789 + 280df3c commit ac3756d

11 files changed

+41
-70
lines changed

_topic_maps/_topic_map.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1696,8 +1696,8 @@ Topics:
16961696
File: images-other-jenkins-agent
16971697
- Name: Migrating from Jenkins to OpenShift Pipelines
16981698
File: migrating-from-jenkins-to-openshift-pipelines
1699-
- Name: OpenShift Jenkins
1700-
File: openshift-jenkins
1699+
- Name: Important changes to OpenShift Jenkins images
1700+
File: important-changes-to-openshift-jenkins-images
17011701
---
17021702
Name: Images
17031703
Dir: openshift_images

cicd/jenkins/images-other-jenkins.adoc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ For example:
1818

1919
[source,terminal]
2020
----
21-
$ podman pull registry.redhat.io/openshift4/ose-jenkins:<v4.3.0>
21+
$ podman pull registry.redhat.io/ocp-tools-4/jenkins-rhel8:<image_tag>
2222
----
2323

2424
To use these images, you can either access them directly from these registries or push them into your {product-title} container image registry. Additionally, you can create an image stream that points to the image, either in your container image registry or at the external location. Your {product-title} resources can then reference the image stream.
@@ -52,6 +52,10 @@ include::modules/images-other-jenkins-customize-s2i.adoc[leveloffset=+1]
5252

5353
include::modules/images-other-jenkins-config-kubernetes.adoc[leveloffset=+1]
5454

55+
.Additional resources
56+
57+
* xref:../../cicd/jenkins/important-changes-to-openshift-jenkins-images.adoc#important-changes-to-openshift-jenkins-images[Important changes to OpenShift Jenkins images]
58+
5559
include::modules/images-other-jenkins-permissions.adoc[leveloffset=+1]
5660

5761
include::modules/images-other-jenkins-create-service.adoc[leveloffset=+1]
Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
:_content-type: ASSEMBLY
2-
[id="openshift-jenkins_{context}"]
3-
= {product-title} Jenkins
2+
[id="important-changes-to-openshift-jenkins-images"]
3+
= Important changes to OpenShift Jenkins images
44
include::_attributes/common-attributes.adoc[]
5-
:context: openshift-jenkins
5+
:context: important-changes-to-openshift-jenkins-images
66

77
toc::[]
88

9-
{product-title} 4.11 moves the "OpenShift Jenkins" and "OpenShift Agent Base" images to the `ocp-tools-4` repository at `registry.redhat.io`. It also removes the "OpenShift Jenkins Maven" and "NodeJS Agent" images from its payload:
9+
{product-title} 4.11 moves the OpenShift Jenkins and OpenShift Agent Base images to the `ocp-tools-4` repository at `registry.redhat.io`. It also removes the OpenShift Jenkins Maven and NodeJS Agent images from its payload:
1010

11-
* {product-title} 4.11 moves the "OpenShift Jenkins" and "OpenShift Agent Base" images to the `ocp-tools-4` repository at `registry.redhat.io` so that Red Hat can produce and update the images outside the {product-title} lifecycle. Previously, these images were in the {product-title} install payload and the `openshift4` repository at `registry.redhat.io`.
11+
* {product-title} 4.11 moves the OpenShift Jenkins and OpenShift Agent Base images to the `ocp-tools-4` repository at `registry.redhat.io` so that Red Hat can produce and update the images outside the {product-title} lifecycle. Previously, these images were in the {product-title} install payload and the `openshift4` repository at `registry.redhat.io`.
1212
13-
* {product-title} 4.10 deprecated the "OpenShift Jenkins Maven" and "NodeJS Agent" images. {product-title} 4.11 removes these images from its payload. Red Hat no longer produces these images, and they are not available from the `ocp-tools-4` repository at `registry.redhat.io`. Red Hat maintains the 4.10 and earlier versions of these images for any significant bug fixes or security CVEs, following the link:https://access.redhat.com/support/policy/updates/openshift[{product-title} lifecycle policy].
13+
* {product-title} 4.10 deprecated the OpenShift Jenkins Maven and NodeJS Agent images. {product-title} 4.11 removes these images from its payload. Red Hat no longer produces these images, and they are not available from the `ocp-tools-4` repository at `registry.redhat.io`. Red Hat maintains the 4.10 and earlier versions of these images for any significant bug fixes or security CVEs, following the link:https://access.redhat.com/support/policy/updates/openshift[{product-title} lifecycle policy].
1414
1515
These changes support the {product-title} 4.10 recommendation to use xref:../../cicd/jenkins/images-other-jenkins.adoc#images-other-jenkins-config-kubernetes_images-other-jenkins[multiple container Pod Templates with the Jenkins Kubernetes Plug-in].
1616

@@ -19,7 +19,7 @@ include::modules/relocation-of-openshift-jenkins-images.adoc[leveloffset=+1]
1919
include::modules/customizing-the-jenkins-image-stream-tag.adoc[leveloffset=+1]
2020

2121
[role="_additional-resources"]
22-
[id="additional-resources_openshift-jenkins_{context}"]
22+
[id="additional-resources_important-changes-to-openshift-jenkins-images_{context}"]
2323
== Additional resources
2424

2525
* xref:../../openshift_images/managing_images/tagging-images.adoc#images-add-tags-to-imagestreams_tagging-images[Adding tags to image streams]
@@ -28,4 +28,6 @@ include::modules/customizing-the-jenkins-image-stream-tag.adoc[leveloffset=+1]
2828
* link:https://catalog.redhat.com/software/containers/search?q=Jenkins%202&p=1[Certified `jenkins` images]
2929
* link:https://catalog.redhat.com/software/containers/search?q=Jenkins%20Agent%20Base&p=1[Certified `jenkins-agent-base` images]
3030
* link:https://catalog.redhat.com/software/containers/search?q=jenkins-agent-maven&p=1[Certified `jenkins-agent-maven` images]
31+
// Writer, remove this line in 4.12
3132
* link:https://catalog.redhat.com/software/containers/search?q=jenkins-agent-nodejs&p=1[Certified `jenkins-agent-nodejs` images]
33+
// Writer, remove this line in 4.12

modules/customizing-the-jenkins-image-stream-tag.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Module included in the following assemblies:
22
//
3-
// * cicd/jenkins/openshift-jenkins.adoc
3+
// * cicd/jenkins/important-changes-to-openshift-jenkins-images.adoc
44
:_content-type: PROCEDURE
55

66
[id="customizing-the-jenkins-image-stream-tag_{context}"]

modules/images-other-jenkins-agent-images.adoc

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,27 +12,12 @@ Jenkins images are available through the Red Hat Registry:
1212

1313
[source,terminal]
1414
----
15-
$ docker pull registry.redhat.io/openshift4/ose-jenkins:<v4.5.0>
15+
$ docker pull registry.redhat.io/ocp-tools-4/jenkins-rhel8:<image_tag>
1616
----
1717

1818
[source,terminal]
1919
----
20-
$ docker pull registry.redhat.io/openshift4/jenkins-agent-nodejs-10-rhel7:<v4.5.0>
21-
----
22-
23-
[source,terminal]
24-
----
25-
$ docker pull registry.redhat.io/openshift4/jenkins-agent-nodejs-12-rhel7:<v4.5.0>
26-
----
27-
28-
[source,terminal]
29-
----
30-
$ docker pull registry.redhat.io/openshift4/ose-jenkins-agent-maven:<v4.5.0>
31-
----
32-
33-
[source,terminal]
34-
----
35-
$ docker pull registry.redhat.io/openshift4/ose-jenkins-agent-base:<v4.5.0>
20+
$ docker pull registry.redhat.io/ocp-tools-4/jenkins-agent-base-rhel8:<image_tag>
3621
----
3722

3823
To use these images, you can either access them directly from link:https://quay.io[Quay.io] or link:https://registry.redhat.io[registry.redhat.io] or push them into your {product-title} container image registry.

modules/images-other-jenkins-auth.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ The first time Jenkins starts, the configuration is created along with the admin
1818
----
1919
$ oc new-app -e \
2020
JENKINS_PASSWORD=<password> \
21-
openshift4/ose-jenkins
21+
ocp-tools-4/jenkins-rhel8
2222
----

modules/images-other-jenkins-config-kubernetes.adoc

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,19 @@
66
[id="images-other-jenkins-config-kubernetes_{context}"]
77
= Configuring the Jenkins Kubernetes plug-in
88

9-
The {product-title} Jenkins image includes the pre-installed link:https://wiki.jenkins-ci.org/display/JENKINS/Kubernetes+Plugin[Kubernetes plug-in] that allows Jenkins agents to be dynamically provisioned on multiple container hosts using Kubernetes and {product-title}.
9+
The OpenShift Jenkins image includes the pre-installed link:https://wiki.jenkins-ci.org/display/JENKINS/Kubernetes+Plugin[Kubernetes plug-in] so that Jenkins agents can be dynamically provisioned on multiple container hosts using Kubernetes and {product-title}.
1010

1111
To use the Kubernetes plug-in, {product-title} provides images that are suitable for use as Jenkins agents, including the Base, Maven, and Node.js images.
1212

13+
[IMPORTANT]
14+
====
15+
{product-title} 4.11 moves the OpenShift Jenkins and OpenShift Agent Base images to the `ocp-tools-4` repository at `registry.redhat.io` so that Red Hat can produce and update the images outside the {product-title} lifecycle. Previously, these images were in the {product-title} install payload and the `openshift4` repository at `registry.redhat.io`.
16+
17+
{product-title} 4.11 removes the OpenShift Jenkins Maven and NodeJS Agent images from its payload. Red Hat no longer produces these images, and they are not available from the `ocp-tools-4` repository at `registry.redhat.io`. Red Hat maintains the 4.10 and earlier versions of these images for any significant bug fixes or security CVEs, following the link:https://access.redhat.com/support/policy/updates/openshift[{product-title} lifecycle policy].
18+
19+
For more information, see the "Important changes to OpenShift Jenkins images" link in the following "Additional resources" section.
20+
====
21+
1322
Both the Maven and Node.js agent images are automatically configured as Kubernetes pod template images within the {product-title} Jenkins image configuration for the Kubernetes plug-in. That configuration includes labels for each of the images that can be applied to any of your Jenkins jobs under their Restrict where this project can be run setting. If the label is applied, jobs run under an {product-title} pod running the respective agent image.
1423

1524
[IMPORTANT]
@@ -66,6 +75,7 @@ data:
6675
<org.csanchez.jenkins.plugins.kubernetes.ContainerTemplate>
6776
<name>jnlp</name>
6877
<image>openshift/jenkins-agent-maven-35-centos7:v3.10</image>
78+
// Writer, remove or update this in 4.12
6979
<privileged>false</privileged>
7080
<alwaysPullImage>true</alwaysPullImage>
7181
<workingDir>/tmp</workingDir>
@@ -110,7 +120,7 @@ data:
110120
<containers>
111121
<org.csanchez.jenkins.plugins.kubernetes.ContainerTemplate>
112122
<name>jnlp</name>
113-
<image>image-registry.openshift-image-registry.svc:5000/openshift/jenkins-agent-base:latest</image>
123+
<image>image-registry.openshift-image-registry.svc:5000/openshift/jenkins-agent-base-rhel8:latest</image>
114124
<privileged>false</privileged>
115125
<alwaysPullImage>true</alwaysPullImage>
116126
<workingDir>/home/jenkins/agent</workingDir>

modules/images-other-jenkins-env-var.adoc

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -82,19 +82,10 @@ By default, the JVM sets the initial heap size.
8282
|When running this image with an {product-title} PVC for the Jenkins configuration directory, this environment variable allows the fatal error log file to persist when a fatal error occurs. The fatal error file is saved at `/var/lib/jenkins/logs`.
8383
|Default: `false`
8484

85-
|`NODEJS_SLAVE_IMAGE`
86-
|Setting this value overrides the image that is used for the default Node.js agent pod configuration. A related image stream tag named `jenkins-agent-nodejs` is in the project. This variable must be set before Jenkins starts the first time for it to have an effect.
87-
|Default Node.js agent image in Jenkins server: `image-registry.openshift-image-registry.svc:5000/openshift/jenkins-agent-nodejs:latest`
88-
89-
|`MAVEN_SLAVE_IMAGE`
90-
|Setting this value overrides the image used for the default maven agent pod configuration. A related image stream tag named `jenkins-agent-maven` is in the project. This variable must be set before Jenkins starts the first time for it to have an effect.
91-
|Default Maven agent image in Jenkins server:
92-
`image-registry.openshift-image-registry.svc:5000/openshift/jenkins-agent-maven:latest`
93-
9485
|`AGENT_BASE_IMAGE`
95-
|Setting this value overrides the image used for the `jnlp` container in the sample Kubernetes plug-in pod templates provided with this image. Otherwise, the image from the `jenkins-agent-base:latest` image stream tag in the `openshift` namespace is used.
86+
|Setting this value overrides the image used for the `jnlp` container in the sample Kubernetes plug-in pod templates provided with this image. Otherwise, the image from the `jenkins-agent-base-rhel8:latest` image stream tag in the `openshift` namespace is used.
9687
|Default:
97-
`image-registry.openshift-image-registry.svc:5000/openshift/jenkins-agent-base:latest`
88+
`image-registry.openshift-image-registry.svc:5000/openshift/jenkins-agent-base-rhel8:latest`
9889

9990
|`JAVA_BUILDER_IMAGE`
10091
|Setting this value overrides the image used for the `java-builder` container in the `java-builder` sample Kubernetes plug-in pod templates provided with this image. Otherwise, the image from the `java:latest` image stream tag in the `openshift` namespace is used.

modules/images-other-jenkins-kubernetes-plugin.adoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ spec:
100100
<8> An environment variable `CONTAINER_HEAP_PERCENT`, with value `0.25`, is specified.
101101
<9> The node stanza references the name of the defined pod template.
102102

103+
// Writer, remove or update jenkins-agent-maven reference in 4.12
104+
103105
By default, the pod is deleted when the build completes. This behavior can be modified with the plug-in or within a pipeline Jenkinsfile.
104106

105107
Upstream Jenkins has more recently introduced a YAML declarative format for defining a `podTemplate` pipeline DSL in-line with your pipelines. An example of this format, using the sample `java-builder` pod template that is defined in the {product-title} Jenkins image:
@@ -122,7 +124,7 @@ metadata:
122124
spec:
123125
containers:
124126
- name: jnlp
125-
image: image-registry.openshift-image-registry.svc:5000/openshift/jenkins-agent-base:latest
127+
image: image-registry.openshift-image-registry.svc:5000/openshift/jenkins-agent-base-rhel8:latest
126128
args: ['\$(JENKINS_SECRET)', '\$(JENKINS_NAME)']
127129
- name: java
128130
image: image-registry.openshift-image-registry.svc:5000/openshift/java:latest

modules/installation-restricted-network-samples.adoc

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -22,29 +22,6 @@ Mirroring
2222
will not apply to these image streams.
2323
endif::[]
2424

25-
[IMPORTANT]
26-
====
27-
The `jenkins`, `jenkins-agent-maven`, and `jenkins-agent-nodejs` image streams
28-
come from the install payload and are managed by the Samples
29-
ifdef::restrictednetwork[]
30-
Operator, so no further mirroring procedures are needed for those image streams.
31-
endif::[]
32-
ifdef::samplesoperatoraltreg[]
33-
Operator.
34-
endif::[]
35-
36-
Setting the `samplesRegistry` field in the Sample Operator configuration file to link:https://registry.redhat.io[registry.redhat.io] is redundant because it is already directed to link:https://registry.redhat.io[registry.redhat.io] for everything but Jenkins images and image streams.
37-
38-
////
39-
The Cluster Samples Operator prevents the use of the following registries for the Jenkins image streams:
40-
41-
* link:https://docker.io[docker.io]
42-
* link:https://registry.redhat.io[registry.redhat.io]
43-
* link:https://registry.access.redhat.com[registry.access.redhat.com]
44-
* link:https://quay.io[quay.io].
45-
////
46-
====
47-
4825
[NOTE]
4926
====
5027
The `cli`, `installer`, `must-gather`, and `tests` image streams, while

0 commit comments

Comments
 (0)