This adds a feature to the Jenkins image that allows a global shared library to be installed whe deploying if desired. It allows all pipelines access to common methods like patchBuildConfigOutputLabels(). This feature is added through an init.groovy.d script and the deployment needs to provide env vars (defined in s2i-config/jenkins-master/README.md) which references the git repository containing the shared library. It supports public repos and private repos through an OCP secret.
Pipelines will NO longer have to import libraries with code like
This adds a feature to the Jenkins image that allows a global shared library to be installed whe deploying if desired. It allows all pipelines access to common methods like
patchBuildConfigOutputLabels()
. This feature is added through an init.groovy.d script and the deployment needs to provide env vars (defined in s2i-config/jenkins-master/README.md) which references the git repository containing the shared library. It supports public repos and private repos through an OCP secret.Pipelines will NO longer have to import libraries with code like