Compare commits
9 Commits
feature/22
...
master
Author | SHA1 | Date |
---|---|---|
Roberto Cirillo | 07a6c87929 | |
Roberto Cirillo | 96d90b8748 | |
Roberto Cirillo | 324dc7f94b | |
Roberto Cirillo | e91db165a1 | |
Roberto Cirillo | 48889c60b0 | |
Roberto Cirillo | 6f312acdc4 | |
Roberto Cirillo | b723dbf88a | |
Roberto Cirillo | 2c730a8f30 | |
Roberto Cirillo | 0a45372d08 |
|
@ -0,0 +1,3 @@
|
||||||
|
.project
|
||||||
|
.idea
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!groovy
|
#!groovy
|
||||||
import org.yaml.snakeyaml.Yaml
|
import org.yaml.snakeyaml.Yaml
|
||||||
|
|
||||||
// set the build options according to the Type of build
|
// set the build options according to the Type of build
|
||||||
|
@ -124,6 +124,10 @@ pipeline {
|
||||||
string(name: 'resume_from',
|
string(name: 'resume_from',
|
||||||
defaultValue: '',
|
defaultValue: '',
|
||||||
description: 'Resume from a previous build identified by the build number.')
|
description: 'Resume from a previous build identified by the build number.')
|
||||||
|
|
||||||
|
booleanParam(name: 'ContinuousDeployment',
|
||||||
|
defaultValue: false,
|
||||||
|
description: 'If true, the gCubeDeployer pipeline will be triggered')
|
||||||
}
|
}
|
||||||
|
|
||||||
//see https://jenkins.io/doc/book/pipeline/syntax/#stages
|
//see https://jenkins.io/doc/book/pipeline/syntax/#stages
|
||||||
|
@ -233,7 +237,7 @@ pipeline {
|
||||||
'''
|
'''
|
||||||
def report_text = sh(script: 'cat ${AGENT_ROOT_FOLDER}/build_commits.csv', returnStdout: true)?.trim()
|
def report_text = sh(script: 'cat ${AGENT_ROOT_FOLDER}/build_commits.csv', returnStdout: true)?.trim()
|
||||||
|
|
||||||
def pjob = build(job: 'Pipeline-gCubeReleaseNotes', wait: true, propagate: true,
|
def pjob = build(job: 'Pipeline-gCubeReleaseNotes', wait: true, propagate: false,
|
||||||
parameters: [[$class: 'StringParameterValue', name: 'report', value: "${report_text}"],
|
parameters: [[$class: 'StringParameterValue', name: 'report', value: "${report_text}"],
|
||||||
[$class: 'StringParameterValue', name: 'report_number', value: "${env.BUILD_NUMBER}"],
|
[$class: 'StringParameterValue', name: 'report_number', value: "${env.BUILD_NUMBER}"],
|
||||||
[$class: 'StringParameterValue', name: 'gCube_release_version', value: "${params.gCube_release_version}"],
|
[$class: 'StringParameterValue', name: 'gCube_release_version', value: "${params.gCube_release_version}"],
|
||||||
|
@ -242,6 +246,19 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
stage('Deploy components') {
|
||||||
|
when {
|
||||||
|
expression { params.ContinuousDeployment.toBoolean() }
|
||||||
|
}
|
||||||
|
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}"]]
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue