generated from gCubeCI/Pipeline-Docker-Template
fix check on version
This commit is contained in:
parent
9101fdf173
commit
03c5fd3349
|
@ -233,7 +233,8 @@ def deploy(String service, String version, String host){
|
||||||
//Implement a new method in order to check the input parameters
|
//Implement a new method in order to check the input parameters
|
||||||
def checkup(String service, String version, String host){
|
def checkup(String service, String version, String host){
|
||||||
sh("""
|
sh("""
|
||||||
if [![ "$version" == *"SNAPSHOT"* ]]; then
|
if [![ "$version" ~= *"SNAPSHOT"* ]]; then
|
||||||
|
echo"This is not a snapshot version: $version"
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
""")
|
""")
|
||||||
|
|
Loading…
Reference in New Issue