How can I share GUI parameters between pipeline Jenkins jobs

I have many Jenkins pipeline jobs that use the same GUI parameters (defined under 'This project is parameterized' field), for example 'Active Choices Reactive Parameter' that use Groovy script.

I read about the 'Ez-templates', 'Template project', 'Project Inheritance' plugins but I did not found a way to use them on GUI parameters in pipeline job.

I'm looking for a way to define the parameter in one place and copy/inherit the parameter in other jobs.

1 comment

  • 0
    Denys Digtiar

    Both Declarative and Scripted pipeline syntaxes have a way to define parameters from within the Pipeline definition: `parameters` directive and `properties` step correspondingly. It was designed with Multibranch Pipelines in mind but can work for simple Pipeline jobs as well.

Please sign in to leave a comment.