Updated Jenkinsfile
This commit is contained in:
16
openshift/prod/Jenkinsfile
vendored
16
openshift/prod/Jenkinsfile
vendored
@@ -131,22 +131,6 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Deploy to "acc"') {
|
|
||||||
steps {
|
|
||||||
echo '### Deploying to "acc"... ###'
|
|
||||||
script {
|
|
||||||
openshift.withCluster() {
|
|
||||||
openshift.withProject(acc_project) {
|
|
||||||
openshift.raw("set image dc/${ appname } ${ appname }=docker-registry.default.svc:5000/${utv_project}/${ appname }:${BUILD_TAG} --record=true --source=docker ")
|
|
||||||
openshift.raw("annotate dc ${ appname } version=${BUILD_TAG} --overwrite=true")
|
|
||||||
openshift.selector("dc", "${ appname }").rollout().status();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
echo '### Deployed to "acc"! ###'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
stage('Push image to External registry') {
|
stage('Push image to External registry') {
|
||||||
agent {
|
agent {
|
||||||
label 'skopeo-agent'
|
label 'skopeo-agent'
|
||||||
|
|||||||
Reference in New Issue
Block a user