Skip to content

Commit e431691

Browse files
author
Cosmin Cojocar
authored
feat:(jenkinsfile) verify if the application was properly deployed
1 parent 7749d8b commit e431691

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Jenkinsfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ pipeline {
3333
container('go') {
3434
sh "make preview"
3535
sh "jx preview --app $APP_NAME --dir ../.."
36+
37+
// verify if the preview was properly deployed
38+
sh 'jx step verify --pods=1 --after=60 --restarts=0'
3639
}
3740
}
3841
}
@@ -86,6 +89,9 @@ pipeline {
8689

8790
// promote through all 'Auto' promotion Environments
8891
sh 'jx promote -b --all-auto --timeout 1h --version \$(cat ../../VERSION)'
92+
93+
// verify if the application was properly promoted
94+
sh 'jx step verify --pods=1 --after=60 --restarts=0'
8995
}
9096
}
9197
}

0 commit comments

Comments
 (0)