Update pipeline parameters.

This commit is contained in:
Manuele Simi 2020-06-09 22:04:18 -04:00
parent f9497f85c9
commit c2364dea8d
1 changed files with 5 additions and 5 deletions

10
Jenkinsfile vendored
View File

@ -8,7 +8,7 @@
def agent_root_folder = '/var/lib/jenkins/.m2'
//locate the build file
// load the build report's content
def text
if (params.report) {
println "Using local report"
@ -16,7 +16,7 @@ if (params.report) {
} else {
String reportURL = "https://code-repo.d4science.org/gCubeCI/gCubeReleaseConfigs/raw/branch/master/closed/${gCube_release_version}/build_commits.${report_number}.csv"
println "Pulling the report from Git at ${reportURL}"
//load the report file
//load the report from the URL
text = reportURL.toURL().getText()
}
// parse the report and extract the data
@ -51,9 +51,9 @@ pipeline {
defaultValue: '',
description: 'The report number to use for tagging.')
string(name: 'report_file',
string(name: 'report',
defaultValue: '',
description: 'The local file path of the build report. Leave blank to pull the build report from Git.')
description: 'The build report. Leave blank to pull the build report from Git.')
booleanParam(name: 'use_report_commits',
defaultValue: true,
@ -105,7 +105,7 @@ pipeline {
body: "Build time: ${currentBuild.durationString}. See ${env.BUILD_URL}"
emailext attachmentsPattern: "**/release_notes.${PIPELINE_BUILD_NUMBER}.md",
to: 'jenkinsreleases@d4science.org',
subject: "Release notes for ${GCUBE_RELEASE_NUMBER} (build #${PIPELINE_BUILD_NUMBER})",
subject: "Release notes for gCube ${GCUBE_RELEASE_NUMBER} (build #${PIPELINE_BUILD_NUMBER})",
body: "Release notes extracted from the CHANGELOG.md(s) of the released components. See ${env.BUILD_URL}"
}
failure {