generated from gCubeCI/Pipeline-Docker-Template
fix some comments
This commit is contained in:
parent
b0e4dd25be
commit
b86ed090b9
|
@ -162,7 +162,7 @@ pipeline {
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
sh '''
|
sh '''
|
||||||
echo '\033[31;1;4mNew pending deploy added to the queue/033[0m'
|
echo '\033[31;1;4mNew pending deploy/033[0m'
|
||||||
echo "Cron build enabled. Adding ${TRIGGER_JOB} - ${TRIGGER_VERSION} to the queue"
|
echo "Cron build enabled. Adding ${TRIGGER_JOB} - ${TRIGGER_VERSION} to the queue"
|
||||||
touch $DEPLOY_FILE;
|
touch $DEPLOY_FILE;
|
||||||
if grep -q \"\${TRIGGER_JOB}\" \${DEPLOY_FILE}; then
|
if grep -q \"\${TRIGGER_JOB}\" \${DEPLOY_FILE}; then
|
||||||
|
@ -212,10 +212,10 @@ pipeline {
|
||||||
anyOf{
|
anyOf{
|
||||||
triggeredBy 'BuildUpstreamCause'
|
triggeredBy 'BuildUpstreamCause'
|
||||||
triggeredBy 'UpstreamCause'
|
triggeredBy 'UpstreamCause'
|
||||||
//added just for testing . To Remove.
|
// added just for testing . To Remove.
|
||||||
triggeredBy cause: "UserIdCause", detail: "${RELEASE_MANAGER_USER}"
|
triggeredBy cause: "UserIdCause", detail: "${RELEASE_MANAGER_USER}"
|
||||||
}
|
}
|
||||||
// we should improve this conditional check
|
// we should improve this conditional check
|
||||||
equals(actual: "${params.TRIGGER_JOB}", expected: "${RELEASE_JOB}")
|
equals(actual: "${params.TRIGGER_JOB}", expected: "${RELEASE_JOB}")
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
|
@ -223,7 +223,7 @@ pipeline {
|
||||||
if("${DEPLOY_CATEGORY}"){
|
if("${DEPLOY_CATEGORY}"){
|
||||||
echo '\033[31;1;4mGoing to deploy gCube Release \033[0m'
|
echo '\033[31;1;4mGoing to deploy gCube Release \033[0m'
|
||||||
deployRelease("${DEPLOY_CATEGORY}", yamlConfig);
|
deployRelease("${DEPLOY_CATEGORY}", yamlConfig);
|
||||||
}else { println ("CATEGORIES NOT FOUND ON YAML FILE. SKIP TO NEXT STAGE");}
|
}else println ("CATEGORIES NOT FOUND. ENVIRONMENT NOT SET FOR RELEASE DEPLOYMENT. NOTHING TO DO");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue