generated from gCubeCI/Pipeline-Docker-Template
add conditional the report url discovering step
This commit is contained in:
parent
2577fa7ac8
commit
1e3270999f
|
@ -12,8 +12,9 @@ def agent_root_folder = '/var/lib/jenkins'
|
|||
|
||||
// load the build report's content if present
|
||||
def text
|
||||
String reportURL = "https://code-repo.d4science.org/gCubeCI/gCubeReleases/raw/branch/master/open/${gCube_release_version}/build_commits.${params.report_number}.csv"
|
||||
if (reportURL){
|
||||
if (params.report_number){
|
||||
String reportURL = "https://code-repo.d4science.org/gCubeCI/gCubeReleases/raw/branch/master/open/${gCube_release_version}/build_commits.${params.report_number}.csv"
|
||||
if (reportURL){
|
||||
println "Pulling the report from Git at ${reportURL}"
|
||||
text = reportURL.toURL().getText()
|
||||
// parse the report and extract the data
|
||||
|
@ -23,8 +24,10 @@ if (reportURL){
|
|||
// here we need to filter on keywords matching component's section
|
||||
println " $component"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
def deployList
|
||||
def backupList
|
||||
if (params.deployFile) {
|
||||
|
|
Loading…
Reference in New Issue