From 4f2eac538c926c90324c492d87aaf1c945dfac4a Mon Sep 17 00:00:00 2001 From: Manuele Simi Date: Thu, 12 Mar 2020 11:26:18 -0400 Subject: [PATCH] Skip the parent module. --- Jenkinsfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 1662071..12ad359 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -52,8 +52,10 @@ pipeline { report['downstream_modules'] = [:] report['downstream_projects'] = [] report['downstream_modules']['L1'] = [:] - projects2artifacts[inputProject].each { a -> report = analyzeDependency(modules2deps, artifacts2projects, report, a, 1) } - + projects2artifacts[inputProject].each { a -> + if (a.name.split(':').length > 1) { //skip the parent (only groupId) + report = analyzeDependency(modules2deps, artifacts2projects, report, a, 1) } + } } } }