generated from gCubeCI/Pipeline-Docker-Template
fix echo
This commit is contained in:
parent
3f2fb836c0
commit
5f9f635a61
|
@ -144,7 +144,7 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
echo -e "\033[31;1;4mGoing to sleep\033[0m"
|
echo '\033[31;1;4mGoing to sleep\033[0m'
|
||||||
sh ' exit 0; '
|
sh ' exit 0; '
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -160,7 +160,7 @@ pipeline {
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
sh '''
|
sh '''
|
||||||
echo -e "Cron build enabled. \033[31;1;4mNew deploy of ${TRIGGER_JOB} - ${TRIGGER_VERSION} will be added to the pending deploy file\033[0m"
|
echo 'Cron build enabled. \033[31;1;4mNew deploy of ${TRIGGER_JOB} - ${TRIGGER_VERSION} will be added to the pending deploy file\033[0m'
|
||||||
touch $DEPLOY_FILE;
|
touch $DEPLOY_FILE;
|
||||||
if grep -q \"\${TRIGGER_JOB}\" \${DEPLOY_FILE}; then
|
if grep -q \"\${TRIGGER_JOB}\" \${DEPLOY_FILE}; then
|
||||||
echo "component ${TRIGGER_JOB} already added. Nothing to add."
|
echo "component ${TRIGGER_JOB} already added. Nothing to add."
|
||||||
|
@ -191,7 +191,7 @@ pipeline {
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
script{
|
script{
|
||||||
echo -e "Cron build disabled. \033[31;1;4mNew deploy of ${params.TRIGGER_JOB} - ${params.TRIGGER_VERSION} ongoing\033[0m"
|
echo 'Cron build disabled. \033[31;1;4mNew deploy of ${params.TRIGGER_JOB} - ${params.TRIGGER_VERSION} ongoing\033[0m'
|
||||||
ansiColor('xterm') {
|
ansiColor('xterm') {
|
||||||
catchError(buildResult: 'UNSTABLE', stageResult: 'FAILURE') {
|
catchError(buildResult: 'UNSTABLE', stageResult: 'FAILURE') {
|
||||||
checkup("${params.TRIGGER_JOB}", "${params.TRIGGER_VERSION}", "${params.TRIGGER_HOST}");
|
checkup("${params.TRIGGER_JOB}", "${params.TRIGGER_VERSION}", "${params.TRIGGER_HOST}");
|
||||||
|
@ -232,7 +232,7 @@ pipeline {
|
||||||
expression { params.TRIGGER_JOB != "${RELEASE_JOB}" }
|
expression { params.TRIGGER_JOB != "${RELEASE_JOB}" }
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
echo -e "Cron build disabled. Pipeline executed Manually. \033[31;1;4mNew deploy of ${params.TRIGGER_JOB} - ${params.TRIGGER_VERSION} ongoing\033[0m"
|
echo 'Cron build disabled. Pipeline executed Manually. \033[31;1;4mNew deploy of ${params.TRIGGER_JOB} - ${params.TRIGGER_VERSION} ongoing\033[0m'
|
||||||
ansiColor('xterm') {
|
ansiColor('xterm') {
|
||||||
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
|
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
|
||||||
deploy("${params.TRIGGER_JOB}", "${params.TRIGGER_VERSION}", "${params.TRIGGER_HOST}");
|
deploy("${params.TRIGGER_JOB}", "${params.TRIGGER_VERSION}", "${params.TRIGGER_HOST}");
|
||||||
|
|
Loading…
Reference in New Issue