-
JenkinsPipelineStrategy- OpenShift provides this build type. -
Entire build lifecycle can be monitored and managed from OpenShift.
-
Define pipelines and workflows in
Jenkinsfileor a git repository
1. Deploy Jenkins in OpenShift
## Check available jenkins template
$ oc get templates -n openshift | grep jenkins
## Create a new project
$ oc new-project jenkins-project
## Deploy jenkins and wait for the deployment up and running
$ oc new-app --as-deployment-config \
> jenkins-ephemeral -p MEMORY_LIMIT=2048Mi
$ oc get pod
## find the jenkins app url
$ oc get route
Login with OpenShift credentials and Authorize Access.
Configure App Project
## create project for app
$ oc new-project cicd-app-demo
## de