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

jenkinsProject variable is not available in Pipeline jobs

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Duplicate
    • Component/s: active-choices-plugin
    • Labels:
      None
    • Environment:
      Jenkins 2.73.3
      Active Choices 2.0
    • Similar Issues:

      Description

      The jenkinsProject variable does not appear in the bindings when Active Choice parameter is used in a pipeline job.

      Can be tested in similar manner to related issues, ie:
      return [ jenkinsProject.getName() ]

        Attachments

          Issue Links

            Activity

            Hide
            kinow Bruno P. Kinoshita added a comment -

            Hi David, thanks for reporting it. I am closing it in favour of JENKINS-29407. It's been for a while in our roadmap, but we haven't settled on a solution yet. Feel free to chime in and join the discussion in case you have suggestions.

            Right now jobs triggered in pipelines with no human interaction, timer, or via other non-human actions are not supported. The plug-in relies on the HTML DOM for the reactivity, and events triggered by users on the UI.

            Though I believe it should be doable to mimic the behaviour when using pipeline/workflow, groovy, REST API, timers, etc.

            Show
            kinow Bruno P. Kinoshita added a comment - Hi David, thanks for reporting it. I am closing it in favour of JENKINS-29407 . It's been for a while in our roadmap, but we haven't settled on a solution yet. Feel free to chime in and join the discussion in case you have suggestions. Right now jobs triggered in pipelines with no human interaction, timer, or via other non-human actions are not supported. The plug-in relies on the HTML DOM for the reactivity, and events triggered by users on the UI. Though I believe it should be doable to mimic the behaviour when using pipeline/workflow, groovy, REST API, timers, etc.
            Hide
            kinow Bruno P. Kinoshita added a comment -

            Closing as duplicate as per comment. Pipeline support is in the works.

            Show
            kinow Bruno P. Kinoshita added a comment - Closing as duplicate as per comment. Pipeline support is in the works.

              People

              • Assignee:
                kinow Bruno P. Kinoshita
                Reporter:
                davidgumbrell David Gumbrell
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: