Daniel Beck commented on Improvement JENKINS-25330

1. I have folder > subfolder 1 -> subfolder 2> etc. Should this option be checked in all the folders for the desired effect?

It is enabled for a job when any folder in it's hierarchy has this enabled. So if FoldA/FoldB has the property set, it will be effective for FoldA/FoldB/job1 and FoldA/FoldB/FoldC/job2, but not for FoldA/job3 or job4. For the 'advanced' option to place the workspace inside the folder's workspace, it uses the configuration of the innermost/most deeply nested folder that has 'Use short workspace enabled'.

Example:

FoldA - no short workspace selected
FoldA/FoldB - short workspace selected
FoldA/FoldB/FoldC - short workspace selected, and opting in to place it inside folder's workspace
FoldA/FoldB/FoldC/FoldD - no short workspace selected
FoldA/FoldB/FoldC/FoldD/FoldE - short workspace selected

Then the following behavior will occur:

FoldA/job1 - Workspace is JENKINS_HOME/workspace/FoldA/job1 (no element in the hierarchy has the option enabled)
FoldA/FoldB/job2 - Workspace is JENKINS_HOME/workspace/01234abcd (enabled through parent folder, but not placed inside the parent folder's workspace)
FoldA/FoldB/FoldC/job3 - Workspace is JENKINS_HOME/workspace/FoldA/FoldB/FoldC/abcd01234 (enabled through parent folder, and placed inside parent folder's workspace)
FoldA/FoldB/FoldC/FoldD/job4 - Workspace is JENKINS_HOME/workspace/FoldA/FoldB/FoldC/4321dcba (enabled through grandparent folder, and placed inside grandparent folder's workspace)
FoldA/FoldB/FoldC/FoldD/FoldE/job5 - Workspace is JENKINS_HOME/workspace/9876cafe (enabled through parent folder, and no placed inside parent folder's workspace)


2. Can you add some screenshot of what the results look like before and after this setting.

I'm not sure what you want to see. Windows Explorer? The build log mentions where the workspace is (for freestyle jobs at least, didn't try for Build Flow, and it looks like

Building on master in workspace /var/lib/jenkins/workspace/c032452b

(enabled) or

Building on master in workspace /var/lib/jenkins/workspace/FoldA/FoldB/c032452b

(enabled and configured to place the short workspace inside the folder's workspace); rather than the default of:

Building on master in workspace /var/lib/jenkins/workspace/FoldA/FoldB/job2

Results are similar on Windows, just e.g. C:\Jenkins rather than /var/lib/jenkins.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to