44 lines
No EOL
1.4 KiB
Groovy
44 lines
No EOL
1.4 KiB
Groovy
pipeline {
|
|
agent { label "VirtualBoxHost" }
|
|
stages {
|
|
stage('Checkout test utilites') {
|
|
steps {
|
|
checkout([$class: 'GitSCM',
|
|
branches: [[name: 'origin/master']],
|
|
doGenerateSubmoduleConfigurations: false,
|
|
extensions: [[$class: 'CleanBeforeCheckout'], [$class: 'RelativeTargetDirectory', relativeTargetDir: 'Utilities']],
|
|
submoduleCfg: [], userRemoteConfigs: [[url: 'git@hydra:gistest/Utilities.git']]])
|
|
}
|
|
}
|
|
|
|
stage('USE_CONFIG as true') {
|
|
when {
|
|
expression {
|
|
"${USE_CONFIG}" == "true"
|
|
}
|
|
}
|
|
steps {
|
|
script {
|
|
sh '''
|
|
python3.6 Utilities/nodeState/node.py -n ${NODE_NAME} -c ${CONFIG}
|
|
'''
|
|
}
|
|
}
|
|
}
|
|
stage('USE_CONFIG as false') {
|
|
when {
|
|
expression {
|
|
"${USE_CONFIG}" == "false"
|
|
}
|
|
}
|
|
steps {
|
|
script {
|
|
sh '''
|
|
python3.6 Utilities/nodeState/node.py -n ${NODE_NAME}
|
|
'''
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
} |