From be52e8ec615967d3a23eff3561ce4791a95144dc Mon Sep 17 00:00:00 2001 From: Manuele Simi Date: Wed, 11 Mar 2020 14:13:21 -0400 Subject: [PATCH] Add some formatting to the report. --- Jenkinsfile | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index d461b92..525e79f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -112,29 +112,29 @@ def printReport(report) { def indent = '\t' text += "Dependency Report for ${report['project']} (jenkins project)" text += "\n\n" - text += "Project Modules\n" + text += "\--Project Modules\n" report['downstream_modules'].each { deep, artifacts -> artifacts.each { name, data -> - text += "${indent}Module Name: ${name}\n" - text += "${indent}Dependency Level: ${deep}\n" - text += "${indent}\tDownstream Modules for ${name}\n" + text += "${indent}|--Module Name: ${name}\n" + text += "${indent}|--Dependency Level: ${deep}\n" + text += "${indent}\--Downstream Modules for ${name}\n" data['dependencies'].each {d -> - text += "${indent}\t\t${d}" + text += "${indent}\t|--${d}" text += "\n" } - text += "${indent}\tDownstream Projects for ${name}\n" + text += "${indent}\t\--Downstream Projects for ${name}\n" data['projects'].each { p -> - text += "${indent}\t\t${p}" + text += "${indent}\t|--${p}" text += "\n" } } } text += "\n\n" - text += "All Downstream Projects\n" + text += "\--All Downstream Projects\n" report['downstream_projects'].unique().sort() report['downstream_projects'].each { p -> - text += "${indent}${p}" + text += "${indent}|--${p}" text += "\n" } println text