Skip to content

openshift configuration

travis edited this page Dec 11, 2019 · 1 revision

Docker Configuration

Introduction

OpenShift is a docker container orchestrator built on top Kubernetes.

Overview

This template allow you to configure Jenkins in order to work with OpenShift.

It will:

  • Add OpenShift client as custom tool.

  • Configure an OpenShift cluster to work with.

Prerequisites

In order to execute this template, you need the following plugins installed in your Jenkins:

ℹ️
The initialize instance template will install all plugins if you select Openshift or Docker+Openshift in the installDeploymentPlugins parameter

Template

This template will be automatically created in your jenkins after executing the Initialize_Instance template inside the UTILS folder with the name Openshift_Configuration.

For manual creation see: How to add a Template

This template needs the devonfw Production Line Shared Lib

Parameters

The required parameters are:

  • ocName: The name of the OpenShift connection. You can define multiple OpenShift connections by changing the name.

  • ocUrl: The OpenShift URL.

  • ocProject: The OpenShift Project.

  • ocToken: The OpenShift token. In order to have a long-term token, this token should be a service account token.

Execution

  1. Press the Build with Parameters button

  2. Insert the parameters.

  3. If the OpenShift token is not added as credential, please add a new entry.

  4. Press the Build button.

  5. Wait until the pipeline ends.

⚠️
If a cluster already exists with the provided name, it will not modify anything.
openshift configuration
openshift configuration2
openshift configuration3

You can add more clusters by executing the template again or in Jenkins → Manage Jenkins → Configure System

openshift clusters