可以参考
https://www.openshift.com/blog/deploying-jenkins-on-openshift-part-1
另外还有两种方式:
ocp4 的开发者 console 里面catalog仍然有 jenkins 组件。
在 operatorhub 里面应该有一个 jenkins operator.
Jenkins 不是专门为容器环境设计,插件也比较多。
Teckton 是基于 kubernetes 环境推出的新的 pipeline 组件,是采用 CRD 模式声明性的 pipeline, 在容器中运行 pipeline, 同时使用 kubernetes 工具构建 images, 目前在 OpenShift 4 上也是属于技术预览,从成熟度上来说, Jenkins 可能更成熟,但如果是纯容器环境,可以关注和试用 teckton 。可以参考我同事的文章
https://developer.ibm.com/zh/articles/cl-lo-building-an-enterprise-oriented-cicd-based-on-openshift/