Skip to content
This repository was archived by the owner on Aug 29, 2024. It is now read-only.

Jenkins Image switch to Jenkins:2

Angelika Ehlers edited this page Oct 11, 2017 · 17 revisions

Issue:

New Jenkins Image to use

Solution:

Jenkins 2 (== Jenkins 2.46)

Steps:

Two ways to do it.

First way:

  1. Update Jenkins image in GUI to jenkins:2
  2. Update YAML: remove image reference (set to '')

Second way: 1.) Edit YAML file and set Image reference and trigger

Issue: Use Jenkins image with OAUTH

Solution:

Step 1:

Deleted the jenkins from the config and re-create using the cmd below (Step 2)

Step 2:

oc process -f https://raw.githubusercontent.com/BCDevOps/openshift-tools/master/provisioning/pipeline/resources/pipeline-build.json -v NAME=devex-pipeline -v p SOURCE_REPOSITORY_URL=https://github.com/agehlers/devex.git -p SOURCE_REPOSITORY_REF=develop | oc create -n agehlers-sandbox -f -

This should cause a jenkins deployment (DC, svc, route, PVC, etc.) to be spun up, and the service name would be jenkins.

Step 3:

Configure Jenkins

  • Maven Kubernet node (cpu, memory)
  • Configure timeouts

NOTE:

https://github.com/BCDevOps/openshift-tools/tree/master/provisioning

Clone this wiki locally