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

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

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: pipeline
    • Environment:
      Jenkins 2.194 (running on WindowsServer)
      Pipeline 2.6
      Pipeline Utility Steps 2.3.1
      Pipeline API 2.37
    • Similar Issues:

      Description

      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.

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            monger39 David Riemens
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: