generated from gCubeCI/Pipeline-Docker-Template
create new vars TRIGGER-JOB and VERSION
This commit is contained in:
parent
b8856075f5
commit
622dce0fab
|
@ -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}
|
||||
'''
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue