I do notice that my build has a "BUILD_URL" var in the environment, so that 
gives me the "prefix" of the url, but the url to the file in the workspace 
has pieces like the following after the BUILD_URL value: 
"/execution/node/22/ws/". I don't see anything else in the environment that 
can help me construct that part of the url.

On Friday, September 10, 2021 at 9:22:16 AM UTC-7 David Karr wrote:

> When a Jenkins build completes, I can navigate to "Workspaces" to manually 
> inspect files in the workspace.  While I'm navigating that tree, and 
> viewing specific files, I can see that the current browser url goes 
> directly to that point in the tree, and to the specific file I am viewing.
>
> Is there a practical way in a Jenkins scripted pipeline, to CONSTRUCT a 
> url to a file in the workspace so I can print it out in the log, to enable 
> a single click to get to a particular file?
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/d3dbf8b8-93c0-4194-8311-bac7656b90b6n%40googlegroups.com.

Reply via email to