add agent_root_folder definition

This commit is contained in:
Roberto Cirillo 2022-04-22 16:35:54 +02:00
parent fbd6f138f6
commit fc86902508
1 changed files with 9 additions and 1 deletions

10
Jenkinsfile vendored
View File

@ -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') {