generated from gCubeCI/Pipeline-Docker-Template
add agent_root_folder definition
This commit is contained in:
parent
fbd6f138f6
commit
fc86902508
|
@ -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') {
|
||||
|
|
Loading…
Reference in New Issue