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

to get the "workspace URL of multi branch pipeline jenkins projects" programmatically

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor Minor
    • pipeline
    • Jenkins 2.194 (running on WindowsServer)
      Pipeline 2.6
      Pipeline Utility Steps 2.3.1
      Pipeline API 2.37

      as follow-up to [JENKINS-26138 :
      I am running multibranch (scripted) pipeline jobs. In case of failure I would want to provide easy access to the workspace containing (large!!) log files.

      This is possible through a link:

      <JENKINS_HOST>/jobs/<JOB_NAME>/<BUILD_NUMBER>/execution/node/<WS-ID>/ws

      which I can insert in my job (NUnit tests), and emit in case of failure. 

      The link points to the step in the pipeline that contains the 'Allocate node : Start'.

      However the WS-ID number keeps varying outside of my control, which makes the linke rather useless.

      My request is to make this WS-ID (link) available to the pipeline code of the job itself. Preferably as a fixed link, without some random number.

      thx, D.

            Unassigned Unassigned
            monger39 David Riemens
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: