From 146dd63cb6daad930e684630b1abe64f15dc0589 Mon Sep 17 00:00:00 2001 From: Roberto Cirillo Date: Thu, 4 Aug 2022 15:44:33 +0200 Subject: [PATCH] fix deploy filename --- Jenkinsfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 0667d37..483bd7c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -9,8 +9,8 @@ import groovy.io.FileType // related jenkins job: https://jenkins.d4science.org/job/gCubeDeployer/ def agent_root_folder = '/var/lib/jenkins' -def agent_deploy_filename = 'deploy.${env.BUILD_NUMBER}.csv' -def agent_deploy_backup_filename = 'deploy.${env.BUILD_NUMBER}.bck' +//def agent_deploy_filename = 'deploy.${env.BUILD_NUMBER}.csv' +//def agent_deploy_backup_filename = 'deploy.${env.BUILD_NUMBER}.bck' def deployList def backupList @@ -53,8 +53,8 @@ pipeline { AGENT_ROOT_FOLDER = "${agent_root_folder}" DEPLOY_ROOT_FOLDER ="${agent_root_folder}/ansible-repos/ansible-playbooks/d4science-ghn-cluster/CD" PIPELINE_BUILD_NUMBER = "${env.BUILD_NUMBER}" - DEPLOY_FILE = "${agent_root_folder}/${agent_deploy_filename}" - BACKUP_FILE = "${agent_root_folder}/${agent_deploy_backup_filename}" + DEPLOY_FILE = "${agent_root_folder}/deploy.${PIPELINE_BUILD_NUMBER}.csv" + BACKUP_FILE = "${agent_root_folder}/deploy.${PIPELINE_BUILD_NUMBER}.bck" TRIGGER_JOB= "${params.TRIGGER_JOB}" TRIGGER_VERSION= "${params.TRIGGER_VERSION}" TRIGGER_HOST="${params.TRIGGER_HOST}"