/jenkins-job-builder-active-choice

Enables support for Active Choice Plugin plugin in Jenkins Job Builder.

Primary LanguagePythonMIT LicenseMIT

Jenkins Job Builder plugin for Active Choice Parameter

https://travis-ci.org/bgaifullin/jenkins-job-builder-active-choice.png?branch=master

Enables support for Active Choice Plugin plugin in Jenkins Job Builder.

Example:

- job:
    name: 'cascade-choice-example'

    parameters:
      - string:
          name: STR_PARAM
          default: test
      - cascade-choice:
          project: 'cascade-choice-example'
          name: CASCADE_CHOICE
          script: |
            return ['foo:selected', 'bar']
          description: "A parameter named CASCADE_CHOICE which options foo and bar."
          visible-item-count: 1
          fallback-script: |
            return ['Something Wrong']
          reference: STR_PARAM
          choice-type: single