MAVEN_SLAVE_IMAGE environment variable is only taken into account on first deployment of Jenkins

Solution Verified - Updated -

Issue

  • When deploying Jenkins on our OCP platform we created two custom images based on the Red Hat base images: jenkins master custom image and maven slave custom image. Environment variable MAVEN_SLAVE_IMAGE is only taken into account when creating the project. If we set the variable after the first deployment, it's not used. The configured image is always the Red Hat image or custom image configured during the first deployment.
  • How do we update this image, after the first deployment? Is it normal that the value of the environment variable is no longer taken into account after the first deployment?

Environment

  • Red Hat OpenShift Container platform (OpenShift) 3.6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content