Update Jenkinsfile
This commit is contained in:
19
openshift/dev/Jenkinsfile
vendored
19
openshift/dev/Jenkinsfile
vendored
@@ -43,7 +43,7 @@ pipeline {
|
|||||||
CACHE_DIRECTORY=/home/jenkins/.npm/cache
|
CACHE_DIRECTORY=/home/jenkins/.npm/cache
|
||||||
mkdir -p ${CACHE_DIRECTORY}
|
mkdir -p ${CACHE_DIRECTORY}
|
||||||
echo "_auth=${ENCODED}" >> .npmrc
|
echo "_auth=${ENCODED}" >> .npmrc
|
||||||
|
|
||||||
# set -x
|
# set -x
|
||||||
cat .npmrc
|
cat .npmrc
|
||||||
|
|
||||||
@@ -149,6 +149,23 @@ pipeline {
|
|||||||
echo '### Deployed to "sys"! ###'
|
echo '### Deployed to "sys"! ###'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Temporary while data in sys is so bad
|
||||||
|
stage('Deploy to "test"') {
|
||||||
|
steps {
|
||||||
|
echo '### Deploying to "test"... ###'
|
||||||
|
script {
|
||||||
|
openshift.withCluster() {
|
||||||
|
openshift.withProject(test_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 "test"! ###'
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user