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

jenkinsProject variable is not available in Pipeline jobs

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • active-choices-plugin
    • None
    • Jenkins 2.73.3
      Active Choices 2.0

      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() ]

          [JENKINS-48297] jenkinsProject variable is not available in Pipeline jobs

          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.

          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.

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

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

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

              Created:
              Updated:
              Resolved: