Issue Type: Bug Bug
Assignee: Daniel Petisme
Components: copy-to-slave
Created: 16/Apr/13 6:46 AM
Description:

Hi,

I get confused when I use custom workspace in Jenkins job but sometimes CopyToSlave plugin will get different file path in master, over destination folder is disabled. What's rule it follows? Or a bug? My slave is Windows and master is Linux.

[copy-to-slave] Copying 'test/abc.xml', excluding nothing, from 'file:/C:/copytosalve/' on 'hudson.slaves.DumbSlave@13bc56cc' to 'file:/usr/local/apache-tomcat/bin/C:%5Ccopytosalve/' on the master.

[copy-to-slave] Copying 'test/abc.xml', excluding nothing, from 'file:/C:/copytosalve/' on 'hudson.slaves.DumbSlave@b38fcee' to 'file:/root/C:%5Ccopytosalve' on the master.

I checked the source code in https://svn.jenkins-ci.org/trunk/hudson/plugins/copy-to-slave/src/main/java/com/michelin/cio/hudson/plugins/copytoslave/CopyToSlaveUtils.java, the method is inherited from hudson.model.FreeStyleProject, is there any configuration need in the Jenkins server to get the unique default workspace folder when copy back to master?

if(freeStyleProject.getCustomWorkspace() != null && freeStyleProject.getCustomWorkspace().length() > 0) { projectWorkspaceOnMaster = new FilePath(new File(freeStyleProject.getCustomWorkspace())); }
else { projectWorkspaceOnMaster = new FilePath(new File(freeStyleProject.getRootDir(), "workspace")); }

Project: Jenkins
Priority: Major Major
Reporter: Alan Chen
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/groups/opt_out.
 
 

Reply via email to