generated from gCubeCI/Pipeline-Docker-Template
check exit code on checkup function
This commit is contained in:
parent
4639d922e1
commit
26043f361b
|
@ -233,10 +233,7 @@ def deploy(String service, String version, String host){
|
||||||
//Implement a new method in order to check the input parameters
|
//Implement a new method in order to check the input parameters
|
||||||
def checkup(String service, String version, String host){
|
def checkup(String service, String version, String host){
|
||||||
sh("""
|
sh("""
|
||||||
if [[ "$version" ~= *"SNAPSHOT"* ]]; then
|
exit 1;
|
||||||
echo"This is not a snapshot version: $version"
|
|
||||||
exit 1;
|
|
||||||
fi
|
|
||||||
""")
|
""")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue