generated from gCubeCI/Pipeline-Docker-Template
fix check version
This commit is contained in:
parent
26043f361b
commit
977c022cc0
|
@ -233,7 +233,10 @@ def deploy(String service, String version, String host){
|
|||
//Implement a new method in order to check the input parameters
|
||||
def checkup(String service, String version, String host){
|
||||
sh("""
|
||||
exit 1;
|
||||
case "$version" in
|
||||
**SNAPSHOT) echo "version contains SNAPSHOT" ;;
|
||||
* ) exit 1;;
|
||||
esac
|
||||
""")
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue