From e8b96ded7a53f7b31e8ddf94bccbce31dff5be9b Mon Sep 17 00:00:00 2001 From: Manuele Simi Date: Wed, 11 Mar 2020 12:05:19 -0400 Subject: [PATCH] Make the pipeline parametric on the jenkins project. --- Jenkinsfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 3673bff..4e8bb09 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,7 +3,7 @@ def counts = 0 def projects2artifacts = [:] def artifacts2projects = [:] def modules2deps = [:] -def inputProject = 'storagehub-client-library' +def inputProject = params.jenkins_project def report = [:] report['project'] = inputProject @@ -11,6 +11,11 @@ pipeline { agent { label 'CD' } + parameters { + string(name: 'jenkins_project', + defaultValue: '', + description: 'The name of the Jenkins project to analyze.') + } stages { stage('walking projects') { steps {