Accessing workspace from WebUI in a multi-branch pipeline project

482 views
Skip to first unread message

Ewgenij Gawrilow

unread,
May 11, 2017, 9:32:13 AM5/11/17
to Jenkins Users
Hello,

In a "classic" freestyle project, one can easily browse the workspace, download it as an archive, or wipe it out with a mouse click.

However, in a multi-branch pipeline project defined by a Jenkinsfile from SCM I've concocted recently, I don't see the "Workspace" menu item anywhere, neither on the per-branch status page nor on the single build pages.  Is it principally impossible to access the workspace from WebUI in such projects, or is it switched off by default and can be enabled by some advanced configuration variable, or is any additional plugin needed?

Thanks a lot in advance for any advice!

-- Ewgenij

Mark Waite

unread,
May 11, 2017, 9:45:44 AM5/11/17
to jenkins...@googlegroups.com
I believe that a workspace in the context of a freestyle job or a multi-configuration job is specific to a single node, while a pipeline build may have many workspaces, since it can include multiple nodes and multiple tasks.

For example, I constructed a pipeline job which runs tasks on Windows and on Linux from that single pipeline job.  I don't think it would know which of the workspaces to show, whether the original workspace which contains the Jenkinsfile, or the Windows workspace, or the Linux workspace.

Mark Waite
 
Thanks a lot in advance for any advice!

-- Ewgenij

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/6b2d7728-50af-4b15-97bd-8ef04a1f8d2f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Björn Pedersen

unread,
May 11, 2017, 10:13:48 AM5/11/17
to Jenkins Users

Hi,

if you have take a look at the pipeline steps (left menu on a job), then you will find the workspace links on each node and ws step there.
As  Mark correctly mentionend,  there will be a workspace for each of these steps.


Björn



Daniel Butler

unread,
May 11, 2017, 10:30:07 AM5/11/17
to jenkins...@googlegroups.com

 

Hello,

 

If you have a look in the Pipeline Steps each instance of “Allocate Node : Start” will have a link to the workspace used for that node block.

 

Cheers,

Daniel.

--

Ewgenij Gawrilow

unread,
May 11, 2017, 10:32:35 AM5/11/17
to Jenkins Users
Yes, this makes sense.  There is indeed a workspace link in the node allocation step page.

Actually, in my case the whole pipeline runs on a single node in the same workspace, with several stages executed in different Docker containers.  So it would be nice to smuggle a "shortcut link" to the workspace into the branch status page.  But I guess this would be a new feature request.

Thanks for explanation!
Reply all
Reply to author
Forward
0 new messages