Skip to content
This repository has been 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 25, 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 ALL the jenkins objects from the config

  • Route
  • service
  • endpoint
  • replication controllers
  • pvc
  • role binding
  • service account
  • ...

Via commandline (oc) you can delete most of the objects:

oc describe dc jenkins-pipeline-svc|more (look for the label with template=) oc delete all -l template=<label-id-for-jenkins> -n <namespace>

Go to UI and verify all jenkins objects are gone. Remove whats left behind.

Step 2:

Add to project Select Continuous Integration & Deployment Select BC Gov Pathfinder Jenkins (Persistent)

Step 3:

Configure Jenkins

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

NOTE:

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

Clone this wiki locally