check exit code on checkup function

This commit is contained in:
Roberto Cirillo 2022-05-10 14:55:18 +02:00
parent 4639d922e1
commit 26043f361b
1 changed files with 1 additions and 4 deletions

5
Jenkinsfile vendored
View File

@ -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;
""")
}