Fix syntax.

This commit is contained in:
Manuele Simi 2019-12-11 23:46:36 -05:00
parent 26de7d4e76
commit 27bf8aa941
1 changed files with 5 additions and 5 deletions

10
Jenkinsfile vendored
View File

@ -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;
}