You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{product-title} provides Base, Maven, and Node.js images for use as Jenkins agents.
9
+
{product-title} provides a base image for use as a Jenkins agent.
10
10
11
11
The Base image for Jenkins agents does the following:
12
12
13
13
* Pulls in both the required tools, headless Java, the Jenkins JNLP client, and the useful ones, including `git`, `tar`, `zip`, and `nss`, among others.
14
14
* Establishes the JNLP agent as the entry point.
15
-
* Includes the `oc` client tooling for invoking command line operations from within Jenkins jobs.
15
+
* Includes the `oc` client tool for invoking command line operations from within Jenkins jobs.
16
16
* Provides Dockerfiles for both Red Hat Enterprise Linux (RHEL) and `localdev` images.
17
17
18
-
The Maven v3.5, Node.js v10, and Node.js v12 images extend the Base image. They provide Dockerfiles for the Universal Base Image (UBI) that you can reference when building new agent images. Also note the `contrib` and `contrib/bin` subdirectories, which enable you to insert configuration files and executable scripts for your image.
19
-
20
18
[IMPORTANT]
21
19
====
22
20
Use a version of the agent image that is appropriate for your {product-title} release version. Embedding an `oc` client version that is not compatible with the {product-title} version can cause unexpected behavior.
23
21
====
24
22
25
-
The {product-title} Jenkins image also defines the following sample pod templates to illustrate how you can use these agent images with the Jenkins Kubernetes plug-in:
23
+
The {product-title} Jenkins image also defines the following sample `java-builder`pod template to illustrate how you can use the agent image with the Jenkins Kubernetes plugin.
26
24
27
-
- The `maven` pod template, which uses a single container that uses the {product-title} Maven Jenkins agent image.
28
-
- The `nodejs` pod template, which uses a single container that uses the {product-title} Node.js Jenkins agent image.
29
-
- The `java-builder` pod template, which employs two containers. One is the `jnlp` container, which uses the {product-title} Base agent image and handles the JNLP contract for starting and stopping Jenkins agents. The second is the `java` container which uses the `java`{product-title} Sample ImageStream, which contains the various Java binaries, including the Maven binary `mvn`, for building code.
30
-
- The `nodejs-builder` pod template, which employs two containers. One is the `jnlp` container, which uses the {product-title} Base agent image and handles the JNLP contract for starting and stopping Jenkins agents. The second is the `nodejs` container which uses the `nodejs`{product-title} Sample ImageStream, which contains the various Node.js binaries, including the `npm` binary, for building code.
25
+
The `java-builder` pod template employs two containers:
26
+
* A `jnlp` container that uses the {product-title} Base agent image and handles the JNLP contract for starting and stopping Jenkins agents.
27
+
* A `java` container that uses the `java`{product-title} Sample ImageStream, which contains the various Java binaries, including the Maven binary `mvn`, for building code.
* See xref:../../architecture/understanding-development.adoc#base-image-options[Base image options] for more information on the link:https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux_atomic_host/7/html-single/getting_started_with_containers/index#using_red_hat_base_container_images_standard_and_minimal[Red Hat Universal Base Images] (UBI).
74
+
* See xref:../../architecture/understanding-development.adoc#base-image-options[Base image options] for more information about the link:https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux_atomic_host/7/html-single/getting_started_with_containers/index#using_red_hat_base_container_images_standard_and_minimal[Red Hat Universal Base Images] (UBI).
75
+
* xref:../../cicd/jenkins/important-changes-to-openshift-jenkins-images.adoc#important-changes-to-openshift-jenkins-images[Important changes to OpenShift Jenkins images]
Jenkins agent pods, are deleted by default after the build completes or is stopped. This behavior can be changed by the Kubernetes plug-in pod retention setting. Pod retention can be set for all Jenkins builds, with overrides for each pod template. The following behaviors are supported:
9
+
Jenkins agent pods, are deleted by default after the build completes or is stopped. This behavior can be changed by the Kubernetes plugin pod retention setting. Pod retention can be set for all Jenkins builds, with overrides for each pod template. The following behaviors are supported:
10
10
11
11
* `Always` keeps the build pod regardless of build result.
12
-
* `Default` uses the plug-in value, which is the pod template only.
12
+
* `Default` uses the plugin value, which is the pod template only.
13
13
* `Never` always deletes the pod.
14
14
* `On Failure` keeps the pod if it fails during the build.
0 commit comments