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
|
||||
def checkup(String service, String version, String host){
|
||||
sh("""
|
||||
if [[ "$version" ~= *"SNAPSHOT"* ]]; then
|
||||
echo"This is not a snapshot version: $version"
|
||||
exit 1;
|
||||
fi
|
||||
exit 1;
|
||||
""")
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue