diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/Jenkinsfile b/Jenkinsfile index 46abb66..371b205 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -124,6 +124,12 @@ pipeline { string(name: 'resume_from', defaultValue: '', description: 'Resume from a previous build identified by the build number.') + + booleanParam(name: 'ContinuousDeployment', + defaultValue: false, + description: 'If true, the gCubeDeployer pipeline is triggered') + + } } //see https://jenkins.io/doc/book/pipeline/syntax/#stages @@ -242,6 +248,19 @@ pipeline { } } } + stage('Deploy components') { + when { + expression { params.ContinuousDeployment == 'true' } + } + steps { + script { + def pjob = build(job: 'gCubeDeployer', wait: true, propagate: true, + parameters: [[$class: 'StringParameterValue', name: 'gCube_release_version', value: "${params.gCube_release_version}"], + [$class: 'StringParameterValue', name: 'TRIGGER_JOB', value: "${JOB_NAME}"]] + ) + } + } + } }