Get the report as text instead of as file.

This commit is contained in:
Manuele Simi 2020-06-09 15:23:43 -04:00
parent 05e3afe2e5
commit 9a376d134c
1 changed files with 3 additions and 4 deletions

7
Jenkinsfile vendored
View File

@ -10,10 +10,9 @@ def agent_root_folder = '/var/lib/jenkins/.m2'
//locate the build file
def text
if (params.report_file) {
println "Using local report at ${params.report_file}"
text = new File(params.report_file).text
if (params.report) {
println "Using local report"
text = 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}"