[JIRA] (JENKINS-61821) to get the "workspace URL of multi branch pipeline jenkins projects" programmatically

3 views
Skip to first unread message

david@famriemens.nl (JIRA)

unread,
Apr 6, 2020, 3:35:02 AM4/6/20
to jenkinsc...@googlegroups.com
David Riemens created an issue
 
Jenkins / New Feature JENKINS-61821
to get the "workspace URL of multi branch pipeline jenkins projects" programmatically
Issue Type: New Feature New Feature
Assignee: Unassigned
Components: pipeline
Created: 2020-04-06 07:34
Environment: Jenkins 2.194 (running on WindowsServer)
Pipeline 2.6
Pipeline Utility Steps 2.3.1
Pipeline API 2.37
Labels: pipeline workspace
Priority: Minor Minor
Reporter: David Riemens

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.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages