fix check version

This commit is contained in:
Roberto Cirillo 2022-05-10 15:12:07 +02:00
parent 26043f361b
commit 977c022cc0
1 changed files with 4 additions and 1 deletions

5
Jenkinsfile vendored
View File

@ -233,7 +233,10 @@ 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("""
exit 1;
case "$version" in
**SNAPSHOT) echo "version contains SNAPSHOT" ;;
* ) exit 1;;
esac
""")
}