fix check on version

This commit is contained in:
Roberto Cirillo 2022-05-10 14:33:39 +02:00
parent 9101fdf173
commit 03c5fd3349
1 changed files with 2 additions and 1 deletions

3
Jenkinsfile vendored
View File

@ -233,7 +233,8 @@ 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
if [![ "$version" ~= *"SNAPSHOT"* ]]; then
echo"This is not a snapshot version: $version"
exit 1;
fi
""")