Tweak report.

This commit is contained in:
Manuele Simi 2020-03-12 15:56:01 -04:00
parent 594c268249
commit b72237a5f3
1 changed files with 2 additions and 2 deletions

4
Jenkinsfile vendored
View File

@ -116,13 +116,13 @@ def analyzeDependency(modules2deps, alreadyInTheTree, artifacts2projects, report
def printReport(report) {
def text = ''
def indent = '\t'
text += "Dependency Report for ${report['project']} (jenkins project)"
text += "Dependency Report for ${report['project']}"
text += "\n\n"
text += "|--Project Maven Modules\n"
report['downstream_modules'].each { depth, artifacts ->
artifacts.each { name, data ->
text += "${indent}|--Module: ${name}\n"
text += "${indent * 2}|--Dependency Level: ${depth}\n"
text += "${indent * 2}|--Deepest Dependency Level: ${depth}\n"
text += "${indent * 2}|--Used by (Maven Modules)\n"
data['dependencies'].each { d ->
text += "${indent * 3}|--${d}"