Fix syntax, again.

This commit is contained in:
Manuele Simi 2020-03-11 12:11:38 -04:00
parent 8ebc253205
commit 5e7d17deba
1 changed files with 21 additions and 19 deletions

40
Jenkinsfile vendored
View File

@ -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') {
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 {
// 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)
printReport(report)
}
}
}
}
stage('print report') {
steps {
script {
printReport(report)
}
}
}
}
}
// look for modules that use this artifact