In Openshift you can use the Pipeline build strategy that allows developers to define a Jenkins pipeline for execution by the Jenkins pipeline plugin. The build can be started, monitored, and managed by OpenShift Container Platform in the same way as any other build type.
Providing the Jenkinsfile
You can provide the Jenkinsfile in one of two ways:
- Embed the Jenkinsfile in the build configuration.
- Include in the build configuration a reference to the Git repository that contains the Jenkinsfile.
When providing a BuildConfig with a embedded Jenkins file with a reference to a Jenkins Shared Library
@Library('jenkins-pipeline-library') _, I get the following error when loading the
In the Jenkins configuration, section Global Pipeline Libraries, you have to turn on ‘Load implicitly’. It seems that the line with
@Library('jenkins-pipeline-library') _ is not enough when you set source:type:None in your BuildConfig.
Senior Integration Specialist with over 30 years of experience in IT. Professional focus on API Management, Container-based software development / management (Redhat OpenShift) and Message-oriented middleware (Redhat JBoss Fuse / Apache Camel.