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

Active Choices - The variables jenkinsProject and jenkinsBuild are NOT available in pipeline projects

      Hello,

      We recognized that the variables jenkinsProject and jenkinsBuild are not set within a jenkins pipeline project. Which means:

      try {

      def jobName = this.binding.jenkinsProject.name;

      }

      will result in a "property not found: jenkinsProject" exception while working with a pipeline project.

          [JENKINS-50739] Active Choices - The variables jenkinsProject and jenkinsBuild are NOT available in pipeline projects

          Brandon Walsh created issue -
          Michael Fowler made changes -
          Labels Original: active-choices jenkins pipeline New: jenkins pipeline
          Michael Fowler made changes -
          Environment Original: Active Choices 2.1
          Bruno P. Kinoshita made changes -
          Link New: This issue duplicates JENKINS-63284 [ JENKINS-63284 ]
          Bruno P. Kinoshita made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Fixed but Unreleased [ 10203 ]

            kinow Bruno P. Kinoshita
            brand10 Brandon Walsh
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: