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

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

    XMLWordPrintable

Details

    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

        Issue Links

          Activity

            People

              Unassigned Unassigned
              brand10 Brandon Walsh
              Votes:
              2 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: