|
|
|
@ -112,17 +112,17 @@ 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}\--Downstream Modules for ${name}\n"
|
|
|
|
|
text += "${indent}|--Downstream Modules for ${name}\n"
|
|
|
|
|
data['dependencies'].each {d ->
|
|
|
|
|
text += "${indent}\t|--${d}"
|
|
|
|
|
text += "\n"
|
|
|
|
|
}
|
|
|
|
|
text += "${indent}\t\--Downstream Projects for ${name}\n"
|
|
|
|
|
text += "${indent}\t|--Downstream Projects for ${name}\n"
|
|
|
|
|
data['projects'].each { p ->
|
|
|
|
|
text += "${indent}\t|--${p}"
|
|
|
|
|
text += "\n"
|
|
|
|
@ -131,7 +131,7 @@ def printReport(report) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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}"
|
|
|
|
|