[JIRA] (JENKINS-39670) Jenkins changes workspace layout on 2nd startup
Title: Message Title Daniel Beck resolved as Duplicate Jenkins / JENKINS-39670 Jenkins changes workspace layout on 2nd startup Change By: Daniel Beck Status: Open Resolved Resolution: Duplicate Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- 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.
[JIRA] (JENKINS-39670) Jenkins changes workspace layout on 2nd startup
Title: Message Title Daniel Beck updated an issue Jenkins / JENKINS-39670 Jenkins changes workspace layout on 2nd startup Change By: Daniel Beck Used Jenkins version: 2.19.1, but I'm pretty sure this behavior is also present in older jenkins versionsSteps to reproduce:- Download the jenkins.war file- Make sure you have an empty/not existing ~/.jenkins (or whatever JENKINS_HOME directory is used)- From the directory where you downloaded the .war file, run `java -Djenkins.install.runSetupWizard=false -jar jenkins.war`- When Jenkins is started, go to Manage Jenkins -> Configure System and click the "Advanced" button underneath the home directory setting at the top of the page- Observation: the workspace root directory is specified as`${JENKINS_HOME}/workspace/${ITEM_FULLNAME}`, as it is documented on https://wiki.jenkins-ci.org/display/JENKINS/Administering+Jenkins- Cancel the process- Restart Jenkins and again, go to the central configuration- Observation: the workspace root directory suddenly changed to `${ITEM_ROOTDIR}/workspace`This behavior is extremely odd and creates a lot of confusion and wastes people's time, as some Jenkins servers/jobs have the one layout, and some have the other layout, depending on when the jobs where created and whether Jenkins was re-started in between or not. Also I want to raise that the documentation is contradicting:- in the built-in documentation of the config option, it says `The default value is ${ITEM_ROOTDIR}/workspace.`- in the above mentioned wiki page it indicates that the default layout is `${JENKINS_HOME}/workspace/${ITEM_FULLNAME}` Add Comment
[JIRA] (JENKINS-39670) Jenkins changes workspace layout on 2nd startup
Title: Message Title Daniel Beck commented on JENKINS-39670 Re: Jenkins changes workspace layout on 2nd startup Documentation on default location was fixed for Jenkins 2.24 and up. Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- 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.
[JIRA] (JENKINS-39670) Jenkins changes workspace layout on 2nd startup
Title: Message Title Daniel Beck commented on JENKINS-39670 Re: Jenkins changes workspace layout on 2nd startup It's a known issue in the code that changed the default years ago. IIRC the workaround is to save the system configuration via UI once before restarting a new instance for the first time. Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- 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.
[JIRA] (JENKINS-39670) Jenkins changes workspace layout on 2nd startup
Title: Message Title Jens Keller created an issue Jenkins / JENKINS-39670 Jenkins changes workspace layout on 2nd startup Issue Type: Bug Assignee: Unassigned Components: core Created: 2016/Nov/11 12:22 PM Priority: Major Reporter: Jens Keller Used Jenkins version: 2.19.1, but I'm pretty sure this behavior is also present in older jenkins versions Steps to reproduce: Download the jenkins.war file Make sure you have an empty/not existing ~/.jenkins (or whatever JENKINS_HOME directory is used) From the directory where you downloaded the .war file, run `java -Djenkins.install.runSetupWizard=false -jar jenkins.war` When Jenkins is started, go to Manage Jenkins -> Configure System and click the "Advanced" button underneath the home directory setting at the top of the page Observation: the workspace root directory is specified as`$ {JENKINS_HOME}/workspace/${ITEM_FULLNAME}`, as it is documented on https://wiki.jenkins-ci.org/display/JENKINS/Administering+Jenkins - Cancel the process - Restart Jenkins and again, go to the central configuration - Observation: the workspace root directory suddenly changed to `${ITEM_ROOTDIR}/workspace` This behavior is extremely odd and creates a lot of confusion and wastes people's time, as some Jenkins servers/jobs have the one layout, and some have the other layout, depending on when the jobs where created and whether Jenkins was re-started in between or not. Also I want to raise that the documentation is contradicting: - in the built-in documentation of the config option, it says `The default value is ${ITEM_ROOTDIR}/workspace.` - in the above mentioned wiki page it indicates that the