Change By: Simon Howkins (28/Sep/12 11:52 AM)
Description: # Create a test job.
# Set it up with Perforce for the SCM.
# In the Advanced section, set the Windows System Drive and System Root to empty strings.
# Save the config.
# Re-open the configuration window.
# _*Note that the empty strings have been replaced with C: and C:\Windows*_
# Set the Windows System Root and System Drive to strings of a single space.
# Save the config.
# Re-open the configuration window.
# Note that the single space strings have been replaced with empty strings
# Save the
 congig  config  again, and it's back to the C: based defaults :-(

According to JENKINS-4908, empty strings should mean that the perforce plugin should just get the data from the environment.

As we have some slaves where the system drive is C: and some where it's D: (don't ask...) we need to rely on the empty string configuration. Unfortunately, anyone who changes the job configuration needs to also change these fields to single spaces so they will be saved correctly (as empty strings). Otherwise, there will be arbitrary failures when a D: based slave is next chosen for a build.

I've patched the source to make it behave as I would expect and tested locally - will attach...
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

Reply via email to