generated from gCubeCI/Pipeline-Docker-Template
add check on component version into cleanup function
This commit is contained in:
parent
10ec47cbe5
commit
9101fdf173
|
@ -127,9 +127,9 @@ pipeline {
|
|||
expression {
|
||||
env.TRIGGER_CD.toBoolean()
|
||||
}
|
||||
expression {
|
||||
return env.TRIGGER_VERSION.contains("SNAPSHOT")
|
||||
}
|
||||
// expression {
|
||||
// return env.TRIGGER_VERSION.contains("SNAPSHOT")
|
||||
// }
|
||||
|
||||
anyOf{
|
||||
triggeredBy 'BuildUpstreamCause'
|
||||
|
@ -233,7 +233,9 @@ 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 0;
|
||||
if [![ "$version" == *"SNAPSHOT"* ]]; then
|
||||
exit 1;
|
||||
fi
|
||||
""")
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue