Wait for changes to be applied before deploying

This commit is contained in:
Ovidio Mallo 2016-12-06 14:25:52 +01:00
parent cf5424ecc4
commit 35020eceae
2 changed files with 3 additions and 0 deletions

View file

@ -20,6 +20,7 @@ objects:
spec:
containers:
- image: ${PROJECT_BASE}-${BUILD_ENV}/${APP}:${ENV}
imagePullPolicy: IfNotPresent
name: ${APP}
ports:
- containerPort: 8080

View file

@ -12,6 +12,7 @@ node() {
stage('Deploy to DEV') {
sh "${ocCmd} process -f ${appConfigUrl} -v ENV=dev -n rubex-dev | ${ocCmd} apply -f - -n rubex-dev"
sh "${ocCmd} tag rubex-dev/frontend:latest rubex-dev/frontend:dev"
sh "sleep 5"
sh "${ocCmd} deploy frontend --latest --follow -n rubex-dev"
}
@ -24,6 +25,7 @@ node() {
stage('Deploy to TEST') {
sh "${ocCmd} process -f ${appConfigUrl} -v ENV=test -n rubex-test | ${ocCmd} apply -f - -n rubex-test"
sh "${ocCmd} tag rubex-dev/frontend:dev rubex-dev/frontend:test"
sh "sleep 5"
sh "${ocCmd} deploy frontend --latest --follow -n rubex-test"
}
}