add some comments

This commit is contained in:
Roberto Cirillo 2023-04-26 15:25:14 +02:00
parent 2606032208
commit 3f2fb836c0
1 changed files with 4 additions and 4 deletions

8
Jenkinsfile vendored
View File

@ -144,7 +144,7 @@ pipeline {
}
}
steps {
echo 'Going to sleep'
echo -e "\033[31;1;4mGoing to sleep\033[0m"
sh ' exit 0; '
}
}
@ -160,7 +160,7 @@ pipeline {
}
steps {
sh '''
echo "Cron build enabled. New deploy of ${TRIGGER_JOB} - ${TRIGGER_VERSION} will be added to the pending deploy file"
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"
touch $DEPLOY_FILE;
if grep -q \"\${TRIGGER_JOB}\" \${DEPLOY_FILE}; then
echo "component ${TRIGGER_JOB} already added. Nothing to add."
@ -191,7 +191,7 @@ pipeline {
}
steps {
script{
echo "Cron build disabled. New deploy of ${params.TRIGGER_JOB} - ${params.TRIGGER_VERSION} ongoing"
echo -e "Cron build disabled. \033[31;1;4mNew deploy of ${params.TRIGGER_JOB} - ${params.TRIGGER_VERSION} ongoing\033[0m"
ansiColor('xterm') {
catchError(buildResult: 'UNSTABLE', stageResult: 'FAILURE') {
checkup("${params.TRIGGER_JOB}", "${params.TRIGGER_VERSION}", "${params.TRIGGER_HOST}");
@ -232,7 +232,7 @@ pipeline {
expression { params.TRIGGER_JOB != "${RELEASE_JOB}" }
}
steps {
echo "Cron build disabled. Pipeline executed Manually. New deploy of ${params.TRIGGER_JOB} - ${params.TRIGGER_VERSION} ongoing"
echo -e "Cron build disabled. Pipeline executed Manually. \033[31;1;4mNew deploy of ${params.TRIGGER_JOB} - ${params.TRIGGER_VERSION} ongoing\033[0m"
ansiColor('xterm') {
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
deploy("${params.TRIGGER_JOB}", "${params.TRIGGER_VERSION}", "${params.TRIGGER_HOST}");