|
|
|
@ -17,6 +17,7 @@ pipeline {
|
|
|
|
|
description: 'The name of the Jenkins project to analyze.')
|
|
|
|
|
}
|
|
|
|
|
stages {
|
|
|
|
|
|
|
|
|
|
stage('walking projects') {
|
|
|
|
|
steps {
|
|
|
|
|
script {
|
|
|
|
@ -29,6 +30,7 @@ pipeline {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
stage('walking maven modules') {
|
|
|
|
|
steps {
|
|
|
|
|
script {
|
|
|
|
@ -43,30 +45,30 @@ pipeline {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
stage('analyze downstream projects') {
|
|
|
|
|
steps {
|
|
|
|
|
script {
|
|
|
|
|
// println "PROJECT ${inputProject} BUILDS ${projects2artifacts[inputProject]} artifacts"
|
|
|
|
|
// first, let's find out what components depends on the project's artifacts (i.e. downstream dependencies)
|
|
|
|
|
def downstreamdeps = [:]
|
|
|
|
|
report['downstream_modules'] = [:]
|
|
|
|
|
report['downstream_projects'] = []
|
|
|
|
|
report['downstream_modules']['L1'] = [:]
|
|
|
|
|
projects2artifacts[inputProject].each { a -> report = analyzeDependency(modules2deps, artifacts2projects, report, a, 1)}
|
|
|
|
|
printReport(report)
|
|
|
|
|
stage('analyze downstream projects') {
|
|
|
|
|
steps {
|
|
|
|
|
script {
|
|
|
|
|
// println "PROJECT ${inputProject} BUILDS ${projects2artifacts[inputProject]} artifacts"
|
|
|
|
|
// first, let's find out what components depends on the project's artifacts (i.e. downstream dependencies)
|
|
|
|
|
def downstreamdeps = [:]
|
|
|
|
|
report['downstream_modules'] = [:]
|
|
|
|
|
report['downstream_projects'] = []
|
|
|
|
|
report['downstream_modules']['L1'] = [:]
|
|
|
|
|
projects2artifacts[inputProject].each { a -> report = analyzeDependency(modules2deps, artifacts2projects, report, a, 1)}
|
|
|
|
|
printReport(report)
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
stage('print report') {
|
|
|
|
|
steps {
|
|
|
|
|
script {
|
|
|
|
|
printReport(report)
|
|
|
|
|
stage('print report') {
|
|
|
|
|
steps {
|
|
|
|
|
script {
|
|
|
|
|
printReport(report)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
// look for modules that use this artifact
|
|
|
|
|