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("""
|
sh("""
|
||||||
case "$version" in
|
case "$version" in
|
||||||
**SNAPSHOT) echo "version contains SNAPSHOT" ;;
|
**SNAPSHOT) echo "version contains SNAPSHOT" ;;
|
||||||
|
**latest) echo "version contains latest" ;;
|
||||||
* ) echo "version without SNAPSHOT. EXIT WITHOUT DEPLOY "; exit 1;;
|
* ) echo "version without SNAPSHOT. EXIT WITHOUT DEPLOY "; exit 1;;
|
||||||
esac
|
esac
|
||||||
""")
|
""")
|
||||||
|
|
Loading…
Reference in New Issue