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

Pipeline should have a supported way to get to the current build

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor Minor
    • core, pipeline
    • None

      Out of a discussion with abayer when I asked about an alternative to having to log to the global log for JENKINS-46944:

      It would be nice if Pipeline offered a supported way to get to the current build log so that job properties that are being configured can log to the build log instead of having to spam the global system log.

      Perhaps something likeĀ Stapler.getCurrentRequest() for (pipeline) builds?

      Going through Thread.currentThread, if even possible, seems too brittle.

            Unassigned Unassigned
            danielbeck Daniel Beck
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: