generated from gCubeCI/Pipeline-Docker-Template
add check on latest: if latest then deploy allowed
This commit is contained in:
parent
4f2aeb5920
commit
8ced60db1b
|
@ -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
|
||||
""")
|
||||
|
|
Loading…
Reference in New Issue