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

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

    Details

    • Similar Issues:

      Description

      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.

        Attachments

          Activity

          Hide
          lechen26 chen levi added a comment -

          also facing this issue.

          i see other issues related to this, and that make this works on pipeline is on the go.

           

          question is, is there any other way i can get the job name from the activechoiceparameter within a CI pipeline?

           

          thanks!

           

           

          Show
          lechen26 chen levi added a comment - also facing this issue. i see other issues related to this, and that make this works on pipeline is on the go.   question is, is there any other way i can get the job name from the activechoiceparameter within a CI pipeline?   thanks!    

            People

            • Assignee:
              kinow Bruno P. Kinoshita
              Reporter:
              brand10 Brandon Walsh
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: