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
|
||||
def parseJobs(content) {
|
||||
def jobs = [:]
|
||||
try {
|
||||
for (String line : content.split('\n') {
|
||||
//try {
|
||||
for (String line : content.split('\n')) {
|
||||
if (!line.startsWith('#') && !line.startsWith('JobName')) {
|
||||
def columns = line.split(',')
|
||||
jobs["${columns[0]}"] = columns[1]
|
||||
}
|
||||
}
|
||||
} catch(Exception e) {
|
||||
println "Previous job report not available"
|
||||
}
|
||||
//} catch(Exception e) {
|
||||
// println "Previous job report not available"
|
||||
//}
|
||||
jobs;
|
||||
}
|
Loading…
Reference in New Issue