Make the pipeline parametric on the jenkins project.

This commit is contained in:
Manuele Simi 2020-03-11 12:05:19 -04:00
parent 7da9720c28
commit e8b96ded7a
1 changed files with 6 additions and 1 deletions

7
Jenkinsfile vendored
View File

@ -3,7 +3,7 @@ def counts = 0
def projects2artifacts = [:] def projects2artifacts = [:]
def artifacts2projects = [:] def artifacts2projects = [:]
def modules2deps = [:] def modules2deps = [:]
def inputProject = 'storagehub-client-library' def inputProject = params.jenkins_project
def report = [:] def report = [:]
report['project'] = inputProject report['project'] = inputProject
@ -11,6 +11,11 @@ pipeline {
agent { agent {
label 'CD' label 'CD'
} }
parameters {
string(name: 'jenkins_project',
defaultValue: '',
description: 'The name of the Jenkins project to analyze.')
}
stages { stages {
stage('walking projects') { stage('walking projects') {
steps { steps {