title: How can I define additional parameters in jenkinsfile who inherit from a pipeline shared lib?
body: <p>I would like to add a possibility to extends the global parameters define in a Jenkins pipeline. Each JenkinsFile who call the default pipeline have default parameters and he as able to define parameters himself like this:</p>
  
  
  
  <pre class="lang-groovy prettyprint-override"><code>@Library('mylib') _ 
  generic_pipeline {
  
   parameters {
              choice(choices: namespaces, description: 'namespaces ?', name: 'namespaceIdChoice')
              string(defaultValue: "$BRANCH_NAME-$BUILD_NUMBER", description: 'What is the project name ?', name: 'projectName')
              }
  
  }
  </code></pre>
  
  <p>my generic_pipeline is define in a shared lib generic_pipeline.groovy
  and they have already default parameters like this:</p>
  
  <pre class="lang-groovy prettyprint-override"><code>def call(Closure body) {
      def params = [:]
      body.resolveStrategy = Closure.DELEGATE_FIRST
      body.delegate = params
      body()
  
  
      pipeline {
  
          agent {
              label 'master'
          }
  
          parameters {
              string(defaultValue: "defaultParam2", description: 'What is defaultParam2 ?', name: 'defaultParam2')
          }
      }
  }
  </code></pre>
  
  <p>How can I do that ? how can I define additional parameters for the inheritances ?</p>
  
  <p>Thank you </p>