From c2364dea8d73549a4d9a3fdfae24f5dd92f13a26 Mon Sep 17 00:00:00 2001 From: Manuele Simi Date: Tue, 9 Jun 2020 22:04:18 -0400 Subject: [PATCH] Update pipeline parameters. --- Jenkinsfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 66535f7..7864170 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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 {