Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-51202

choiceParam not listed in JobDSL API viewer

    Details

    • Similar Issues:

      Description

      https://jenkinsci.github.io/job-dsl-plugin/#path/job-parameters

      does not list choiceParam, although that parameter exists and works.

        Attachments

          Activity

          Hide
          daspilker Daniel Spilker added a comment -

          choiceParam is provided by the Dynamic DSL which is not available in the (static) API viewer. See the link for details.

          Show
          daspilker Daniel Spilker added a comment - choiceParam is provided by the Dynamic DSL which is not available in the (static) API viewer. See the link for details.
          Hide
          rdonchen_intel Roman Donchenko added a comment -

          I think there is still a bug here. There is a non-dynamic version of choiceParam (https://github.com/jenkinsci/job-dsl-plugin/blob/job-dsl-1.74/job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/helpers/BuildParametersContext.groovy#L86), and that one is not visible in the API viewer.

          Compare it with, for example, booleanParam, for which both dynamic and non-dynamic versions are shown.

          Show
          rdonchen_intel Roman Donchenko added a comment - I think there is still a bug here. There is a non-dynamic version of choiceParam ( https://github.com/jenkinsci/job-dsl-plugin/blob/job-dsl-1.74/job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/helpers/BuildParametersContext.groovy#L86 ), and that one is not visible in the API viewer. Compare it with, for example, booleanParam , for which both dynamic and non-dynamic versions are shown.
          Show
          daspilker Daniel Spilker added a comment - Roman Donchenko yes, you are right. https://github.com/jenkinsci/job-dsl-plugin/pull/1188

            People

            • Assignee:
              daspilker Daniel Spilker
              Reporter:
              aga Aleksi Aalto
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: