jenkins-job-builder/tests/macros/fixtures/parameter/active-choices-macro002.yaml
Artem Nikitin 289b5c55ad Fix uno-choice parameter macro processing
Jinja2 formatter wasn't applied in case of macro parameter
without arguments, due to `ModuleRegistry.dispatch`
couldn't find the parameter definition in the registry.

On other hand, project properties weren't applied for
uno-choice parameter macro with arguments, so it makes
impossible to use these parameters with macros.

Change-Id: Idaff9307dff30567a80b917f6e5ac0717100c349
2022-02-14 07:10:25 +00:00

17 lines
351 B
YAML

- parameter:
name: p_ACTIVE_CHOICES
parameters:
- active-choices:
name: ACTIVE_CHOICES
description: >-
Active choices.
script:
groovy: !j2: |
return ['{{ default }}']
- job:
name: my-job
parameters:
- p_ACTIVE_CHOICES:
default: default_value