From 5e7d17debafd1ce2953ec992a48b70c5c086969f Mon Sep 17 00:00:00 2001 From: Manuele Simi Date: Wed, 11 Mar 2020 12:11:38 -0400 Subject: [PATCH] Fix syntax, again. --- Jenkinsfile | 40 +++++++++++++++++++++------------------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 6ba95df..d461b92 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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