Fix syntax.
This commit is contained in:
parent
26de7d4e76
commit
27bf8aa941
|
@ -272,15 +272,15 @@ def buildComponents(args, maven_settings_file, maven_local_repo_path, jobs) {
|
||||||
@NonCPS
|
@NonCPS
|
||||||
def parseJobs(content) {
|
def parseJobs(content) {
|
||||||
def jobs = [:]
|
def jobs = [:]
|
||||||
try {
|
//try {
|
||||||
for (String line : content.split('\n') {
|
for (String line : content.split('\n')) {
|
||||||
if (!line.startsWith('#') && !line.startsWith('JobName')) {
|
if (!line.startsWith('#') && !line.startsWith('JobName')) {
|
||||||
def columns = line.split(',')
|
def columns = line.split(',')
|
||||||
jobs["${columns[0]}"] = columns[1]
|
jobs["${columns[0]}"] = columns[1]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch(Exception e) {
|
//} catch(Exception e) {
|
||||||
println "Previous job report not available"
|
// println "Previous job report not available"
|
||||||
}
|
//}
|
||||||
jobs;
|
jobs;
|
||||||
}
|
}
|
Loading…
Reference in New Issue