Use string repetition to format.

This commit is contained in:
Manuele Simi 2020-03-11 15:00:24 -04:00
parent e3d05d22c1
commit d92044e59c
1 changed files with 6 additions and 6 deletions

12
Jenkinsfile vendored
View File

@ -114,16 +114,16 @@ def printReport(report) {
text += "|--Project Modules\n" text += "|--Project Modules\n"
report['downstream_modules'].each { deep, artifacts -> report['downstream_modules'].each { deep, artifacts ->
artifacts.each { name, data -> artifacts.each { name, data ->
text += "${indent}|--Module Name: ${name}\n" text += "${indent}|--Module ${name}\n"
text += "${indent}|--Dependency Level: ${deep}\n" text += "${indent*2}|--Dependency Level: ${deep}\n"
text += "${indent}|--Downstream Modules for ${name}\n" text += "${indent*2}|--Downstream Modules for ${name}\n"
data['dependencies'].each {d -> data['dependencies'].each {d ->
text += "${indent}\t|--${d}" text += "${indent*3}|--${d}"
text += "\n" text += "\n"
} }
text += "${indent}|--Downstream Projects for ${name}\n" text += "${indent*2}|--Downstream Projects for ${name}\n"
data['projects'].each { p -> data['projects'].each { p ->
text += "${indent}\t|--${p}" text += "${indent*3}|--${p}"
text += "\n" text += "\n"
} }
} }