create new vars TRIGGER-JOB and VERSION

This commit is contained in:
Roberto Cirillo 2022-04-22 17:09:31 +02:00
parent b8856075f5
commit 622dce0fab
1 changed files with 4 additions and 2 deletions

6
Jenkinsfile vendored
View File

@ -25,6 +25,8 @@ pipeline {
environment {
AGENT_ROOT_FOLDER = "${agent_root_folder}"
DEPLOY_FILE = "${agent_root_folder}/deploy.txt"
TRIGGER_JOB= "${params.TRIGGER_JOB}"
TRIGGER_VERSION= "${params.TRIGGER_VERSION}"
}
stages {
stage('initialize environment') {
@ -87,8 +89,8 @@ pipeline {
}
steps {
sh '''
echo "Cron build enabled. New deploy of ${params.TRIGGER_JOB} - ${params.TRIGGER_VERSION} appended to the deploy file"
echo "${params.TRIGGER_JOB} - ${params.TRIGGER_VERSION}" >> $DEPLOY_FILE
echo "Cron build enabled. New deploy of ${TRIGGER_JOB} - ${TRIGGER_VERSION} appended to the deploy file"
echo "${TRIGGER_JOB} - ${TRIGGER_VERSION}" >> ${DEPLOY_FILE}
'''
}
}