Reputation: 444
In Openshift 4 the pipeline build strategy is deprecated. As per documentation :
The Pipeline build strategy is deprecated in OpenShift Container Platform 4. Equivalent and improved functionality is present in the OpenShift Pipelines based on Tekton.
Jenkins images on OpenShift are fully supported and users should follow Jenkins user documentation for defining their Jenkinsfile in a job or store it in a Source Control Management system.
In my organization, we have on-prem Jenkins available; which is managed by external team. I am trying to to do following:
I tried below:
I am stuck in following:
Upvotes: 1
Views: 4102
Reputation: 2977
You have to install the kubernetes and OpenShift plugins in Jenkins. From there you can configure your OCP clusters (address, credentials etc..) and in your pipeline, use the objets that come with the OpenShift plugin: openshift.withCluster(), openshift.create()...
If you install Jenkins from the template that comes with OCP, all the necessary plugins are already setup (with the jenkins security and the local cluster). More info here
Upvotes: 1