[JIRA] (JENKINS-59333) customWorkspace relative definition isn't straight

3 views
Skip to first unread message

nhatkhai@gmail.com (JIRA)

unread,
Sep 12, 2019, 10:53:02 AM9/12/19
to jenkinsc...@googlegroups.com
NhatKhai Nguyen created an issue
 
Jenkins / Bug JENKINS-59333
customWorkspace relative definition isn't straight
Issue Type: Bug Bug
Assignee: Unassigned
Components: core
Created: 2019-09-12 14:52
Priority: Minor Minor
Reporter: NhatKhai Nguyen

When I try to use relative path to specify for customWorkspace as described in this documatation. I found that it is not clear what is it mean in the documentation mean by "workspace root on the node". For example:

pipeline { agent { node { 
  label 'my_pc'
  customWorkspace 'hello' } }
...
}

#1 With above code, I got WORKSPACE=C:\BLD\hello

#2 When I specify customWorkspace "", I got WORKSPACE=C:\BLD\workspace\my_jenkins_job_path\my_job_name

M1 If the "workspace root on the node" was C:\BLD, #1 would understandable and #2 would not make sense .

M2 If the "workspace root on the node" was C:\BLD\workspace\my_jenkins_job_path\my_job_name, #1 would not make sense , #2 would understandable .

My personal refer M2, but both is really, really confusing to me to understand.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

dbeck@cloudbees.com (JIRA)

unread,
Oct 12, 2019, 11:58:02 AM10/12/19
to jenkinsc...@googlegroups.com
Daniel Beck updated an issue
Change By: Daniel Beck
Component/s: pipeline
Component/s: core
Reply all
Reply to author
Forward
0 new messages