Category: Database, Jenkins, github

In Jenkins’s declarative pipeline, you can add parameters as part of Jenkinsfile. There are many supported parameters type that you can use with a declarative pipeline.

To use the active choice parameter, you need to have an Active Choices plugin installed in Jenkins.

If you are wondering how to use active choice parameters in a declarative pipeline, here is the Jenkinsfile with all Active Choice parameter types.

You can use the native Jenkins pipeline syntax generator to generate the code block for any type of pipeline parameters.

Related Articles