generated from gCubeCI/Pipeline-Docker-Template
fix syntax
This commit is contained in:
parent
6f9a92a330
commit
d4fff4a12d
|
@ -325,7 +325,7 @@ def checkupRelease(String service, String version){
|
||||||
case "$version" in
|
case "$version" in
|
||||||
**SNAPSHOT) echo "version contains SNAPSHOT. EXIT because this is a release build" ; exit 1;;
|
**SNAPSHOT) echo "version contains SNAPSHOT. EXIT because this is a release build" ; exit 1;;
|
||||||
**latest) echo "version contains latest" ;;
|
**latest) echo "version contains latest" ;;
|
||||||
* ) echo "version without SNAPSHOT. go;;
|
* ) echo "version without SNAPSHOT. Go ahead";;
|
||||||
esac
|
esac
|
||||||
""")
|
""")
|
||||||
}
|
}
|
||||||
|
@ -407,7 +407,7 @@ def deployReleaseJobs(def serviceList){
|
||||||
println("Processing record: "+record)
|
println("Processing record: "+record)
|
||||||
service=record.split(",");
|
service=record.split(",");
|
||||||
stage(service[0]){
|
stage(service[0]){
|
||||||
println("Processing RELEASE deploy: "+service[ 0 ])
|
println("Processing RELEASE deploy: service "+service[ 0 ]+" with version "+service[ 1 ])
|
||||||
catchError(buildResult: 'UNSTABLE', stageResult: 'FAILURE') {
|
catchError(buildResult: 'UNSTABLE', stageResult: 'FAILURE') {
|
||||||
checkupRelease(service[0], service[ 1 ]);
|
checkupRelease(service[0], service[ 1 ]);
|
||||||
deployRelease(service[0], service[ 1 ]);
|
deployRelease(service[0], service[ 1 ]);
|
||||||
|
|
Loading…
Reference in New Issue