add check on latest: if latest then deploy allowed

This commit is contained in:
Roberto Cirillo 2022-06-21 17:24:56 +02:00
parent 4f2aeb5920
commit 8ced60db1b
1 changed files with 1 additions and 0 deletions

1
Jenkinsfile vendored
View File

@ -258,6 +258,7 @@ def checkup(String service, String version, String host){
sh("""
case "$version" in
**SNAPSHOT) echo "version contains SNAPSHOT" ;;
**latest) echo "version contains latest" ;;
* ) echo "version without SNAPSHOT. EXIT WITHOUT DEPLOY "; exit 1;;
esac
""")