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

          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!

           

           

          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!    

          orzech szek added a comment -

          Issue still exists. Any updates?

          orzech szek added a comment - Issue still exists. Any updates?

          Moving work to JENKINS-63284. This way it will be easier for me to triage issues, and keep track of requests for pipelines (this issue will be linked).

          Bruno P. Kinoshita added a comment - Moving work to JENKINS-63284 . This way it will be easier for me to triage issues, and keep track of requests for pipelines (this issue will be linked).

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

              Created:
              Updated:
              Resolved: