A folder named "parent" in the workspace is not browseable for a pipeline job.
Example pipeline:
{code}
node { deleteDir() sh ("mkdir -p parent/foo") sh ("mkdir -p bar/parent") sh ("mkdir parent-foo") }
{code}
Note: {{deleteDir()}} is only needed to re-run the job. It is not needed for the behaviour to appear.
Impact: "parent" is an often used folder name in Maven projects.
h3. Works as expected (i.e. shows the folder): * click on a job execution * click on workspaces * click on the listed workspace ** click on folder bar - shows contents ** click on folder bar/parent - shows contents ** click on folder parent-foo - shows contents
h3. Does not work as expected: * click on a job execution * click on workspaces * click on the listed workspace ** click on folder parent - shows the parent node step !workspace-click-on-parent.PNG|thumbnail! ** click on folder parent/foo - results in 404
h3. Workarounds * use subfolder for project (i.e. project-name/parent) * rename "parent"
A folder named "parent" in the workspace is not browseable for a pipeline job.
Example pipeline: {code} node { deleteDir() sh ("mkdir -p parent/foo") sh ("mkdir -p bar/parent") sh ("mkdir parent-foo") } {code} Note: {{deleteDir()}} is only needed to re-run the job. It is not needed for the behaviour to appear.
This will create a workspace with the following folders: !workspace-example-folders.PNG!
Impact: "parent" is an often used folder name in Maven projects.
h3. Works as expected (i.e. shows the folder): * click on a job execution * click on workspaces * click on the listed workspace ** click on folder bar - shows contents ** click on folder bar/parent - shows contents ** click on folder parent-foo - shows contents
h3. Does not work as expected: * click on a job execution * click on workspaces * click on the listed workspace ** click on folder parent - shows the parent node step !workspace-click-on-parent.PNG|thumbnail! ** click on folder parent/foo - results in 404 !workspace-click-on-parent-subfolder.PNG|thumbnail!
h3. Workarounds * use subfolder for project (i.e. project-name/parent) * rename "parent"
I confirmed that the problem exists as described for pipeline jobs. Attempting to browse the workspace of a PIpeline job fails when attempting to navigate a directory named 'parent' at the root of the workspace.
Same problem does not happen for Freestyle jobs. I've assigned the issue to a pipeline plugin.
I confirmed that the problem exists as described for pipeline jobs. Attempting to browse the workspace of a PIpeline job fails when attempting to navigate a directory named 'parent' at the root of the workspace.
Same problem does not happen for Freestyle jobs. I've assigned the issue to a pipeline plugin.
My test case job contained a pipeline definition like this:
{noformat} node('!windows') { stage('create dirs') { deleteDir() sh ("mkdir -p parent/foo && touch parent/foo/file-1") sh ("mkdir -p bar/parent && touch bar/parent/file-2") sh ("mkdir parent-foo && touch parent-foo/file-3") echo "OK URL is ${env.BUILD_URL}/execution/node/3/ws/" echo "Odd URL is ${env.BUILD_URL}/execution/node/3/ws/parent/" echo "Broken URL is ${env.BUILD_URL}/execution/node/3/ws/parent/foo" } } {noformat}
From the console output, clicking the "OK URL" works as expected. Clicking the "Odd URL" causes a surprising result. Clicking the "Broken URL" generates the 404 page not found.
I confirmed that the problem exists as described for pipeline jobs. Attempting to browse the workspace of a PIpeline job fails when attempting to navigate a directory named 'parent' at the root of the workspace.
Same problem does not happen for Freestyle jobs. I've assigned the issue to a pipeline plugin.
My test case job contained a pipeline definition like this:
sh ("mkdir -p parent/foo") sh ("mkdir -p bar/parent") sh ("mkdir parent-foo")
echo "OK URL is ${env.BUILD_URL}/execution/node/3/ws/" echo "Odd URL is ${env.BUILD_URL}/execution/node/3/ws/parent/" echo "Broken URL is ${env.BUILD_URL}/execution/node/3/ws/parent/foo" } } {noformat}
From the console output, clicking the "OK URL" works as expected. Clicking the "Odd URL" causes a surprising result. Clicking the "Broken URL" generates the 404 page not found.