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
|
#!groovy
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Deploy components to the D4Science Infrastructure (dev-only)
|
||||||
|
*
|
||||||
|
* Manuele Simi (ISTI-CNR)
|
||||||
|
*/
|
||||||
|
|
||||||
// related jenkins job: https://jenkins.d4science.org/job/gCubeDeployer/
|
// related jenkins job: https://jenkins.d4science.org/job/gCubeDeployer/
|
||||||
|
|
||||||
|
def agent_root_folder = '/var/lib/jenkins/.m2'
|
||||||
|
|
||||||
|
|
||||||
pipeline {
|
pipeline {
|
||||||
agent {
|
agent {
|
||||||
label 'CD'
|
label 'CD'
|
||||||
|
@ -16,7 +24,7 @@ pipeline {
|
||||||
|
|
||||||
environment {
|
environment {
|
||||||
AGENT_ROOT_FOLDER = "${agent_root_folder}"
|
AGENT_ROOT_FOLDER = "${agent_root_folder}"
|
||||||
DEPLOY_FILE = "${agent_deploy_file}/deploy.txt"
|
DEPLOY_FILE = "${agent_root_folder}/deploy.txt"
|
||||||
}
|
}
|
||||||
stages {
|
stages {
|
||||||
stage('initialize environment') {
|
stage('initialize environment') {
|
||||||
|
|
Loading…
Reference in New Issue