fix version check

This commit is contained in:
Roberto Cirillo 2022-05-10 14:43:15 +02:00
parent 03c5fd3349
commit 4639d922e1
1 changed files with 1 additions and 1 deletions

2
Jenkinsfile vendored
View File

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