From fc86902508439c58be533eb3668490bc9cc443bf Mon Sep 17 00:00:00 2001 From: Roberto Cirillo Date: Fri, 22 Apr 2022 16:35:54 +0200 Subject: [PATCH] add agent_root_folder definition --- Jenkinsfile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 9f66384..48a75da 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,8 +1,16 @@ #!groovy +/** + * Deploy components to the D4Science Infrastructure (dev-only) + * + * Manuele Simi (ISTI-CNR) + */ // related jenkins job: https://jenkins.d4science.org/job/gCubeDeployer/ +def agent_root_folder = '/var/lib/jenkins/.m2' + + pipeline { agent { label 'CD' @@ -16,7 +24,7 @@ pipeline { environment { AGENT_ROOT_FOLDER = "${agent_root_folder}" - DEPLOY_FILE = "${agent_deploy_file}/deploy.txt" + DEPLOY_FILE = "${agent_root_folder}/deploy.txt" } stages { stage('initialize environment') {