[JIRA] [copy-to-slave-plugin] (JENKINS-25346) "Copy files back to master node" doesn't copy to workspace

2015-02-26 Thread d...@cantab.net (JIRA)












































  
Dan Jarvis
 edited a comment on  JENKINS-25346


"Copy files back to master node" doesn't copy to workspace
















I think you deserve the bounty as you made the fix we asked for and given me a lot of assistance.  I think you need to claim the bounty through the website and then I will gladly pay it.  Thanks!



























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.


[JIRA] [copy-to-slave-plugin] (JENKINS-25346) "Copy files back to master node" doesn't copy to workspace

2015-02-26 Thread d...@cantab.net (JIRA)














































Dan Jarvis
 commented on  JENKINS-25346


"Copy files back to master node" doesn't copy to workspace















I think you deserve the bounty as you made the fix we asked for and given me a lot of assistance.  Thanks!



























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.


[JIRA] [copy-to-slave-plugin] (JENKINS-25346) "Copy files back to master node" doesn't copy to workspace

2015-02-25 Thread svvivekan...@gmail.com (JIRA)














































Vivekanand SV
 commented on  JENKINS-25346


"Copy files back to master node" doesn't copy to workspace















@Dan, you can cancel the bounty, thats not needed to make me work, I was (and still am) busy with my personal life, that gives me no time to look here 



























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.


[JIRA] [copy-to-slave-plugin] (JENKINS-25346) "Copy files back to master node" doesn't copy to workspace

2015-02-22 Thread scm_issue_l...@java.net (JIRA)














































SCM/JIRA link daemon
 commented on  JENKINS-25346


"Copy files back to master node" doesn't copy to workspace















Code changed in jenkins
User: Vivekanand S V
Path:
 src/main/java/com/michelin/cio/hudson/plugins/copytoslave/CopyToSlaveUtils.java
http://jenkins-ci.org/commit/copy-to-slave-plugin/6482c22c3a313c0ba8c83c553b1711a3d40c081e
Log:
  [FIXED JENKINS-25346] - Addresses the workspace issue where files copied back to master are not in correct path.





























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.


[JIRA] [copy-to-slave-plugin] (JENKINS-25346) "Copy files back to master node" doesn't copy to workspace

2015-02-22 Thread scm_issue_l...@java.net (JIRA)















































SCM/JIRA link daemon
 resolved  JENKINS-25346 as Fixed


"Copy files back to master node" doesn't copy to workspace
















Change By:


SCM/JIRA link daemon
(23/Feb/15 4:56 AM)




Status:


Open
Resolved





Resolution:


Fixed



























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.


[JIRA] [copy-to-slave-plugin] (JENKINS-25346) "Copy files back to master node" doesn't copy to workspace

2015-02-21 Thread d...@cantab.net (JIRA)














































Dan Jarvis
 commented on  JENKINS-25346


"Copy files back to master node" doesn't copy to workspace















Vivek, the target locations on the master that you described for the Multiconfiguration Project look good to me.  I look forward to testing the new release of the plugin!



























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.


[JIRA] [copy-to-slave-plugin] (JENKINS-25346) "Copy files back to master node" doesn't copy to workspace

2015-02-21 Thread svvivekan...@gmail.com (JIRA)














































Vivekanand SV
 commented on  JENKINS-25346


"Copy files back to master node" doesn't copy to workspace















Its okay, I wrote that way for the others to check the output path generated, I wanted to know if they agree to the paths that I am using now for different types of jobs.



























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.


[JIRA] [copy-to-slave-plugin] (JENKINS-25346) "Copy files back to master node" doesn't copy to workspace

2015-02-21 Thread dan...@beckweb.net (JIRA)














































Daniel Beck
 commented on  JENKINS-25346


"Copy files back to master node" doesn't copy to workspace















Oh, in that case I just didn't understand what you wrote. So you can interpret my recommendation as agreement to what you wrote.



























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.


[JIRA] [copy-to-slave-plugin] (JENKINS-25346) "Copy files back to master node" doesn't copy to workspace

2015-02-21 Thread svvivekan...@gmail.com (JIRA)














































Vivekanand SV
 commented on  JENKINS-25346


"Copy files back to master node" doesn't copy to workspace















Actually, yes. "machine/Lin_Test1/temp_axis/1" and "machine/Lin_Test1/temp_axis/2" parts of the path, from my comment, is generated after checking the prefix 



























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.


[JIRA] [copy-to-slave-plugin] (JENKINS-25346) "Copy files back to master node" doesn't copy to workspace

2015-02-21 Thread dan...@beckweb.net (JIRA)














































Daniel Beck
 commented on  JENKINS-25346


"Copy files back to master node" doesn't copy to workspace















Yes, thats what I end up doing as stated in the comment before your reply above.

The approach I describe in that paragraph doesn't require any particular knowledge about matrix axes or matrix projects; it wasn't clear from your comment whether yours does.



























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.


[JIRA] [copy-to-slave-plugin] (JENKINS-25346) "Copy files back to master node" doesn't copy to workspace

2015-02-21 Thread svvivekan...@gmail.com (JIRA)














































Vivekanand SV
 commented on  JENKINS-25346


"Copy files back to master node" doesn't copy to workspace















What you could try is to determine the TopLevelItem ancestor of the current build's project, and get the workspace of that on the current node (e.g. /jenkins/workspace/foo). If that's a prefix of the current actual workspace (/jenkins/workspace/foo/bar/baz), just append the rest (/bar/baz) to the workspace path on master

Yes, thats what I end up doing as stated in the comment before your reply above.



























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.


[JIRA] [copy-to-slave-plugin] (JENKINS-25346) "Copy files back to master node" doesn't copy to workspace

2015-02-21 Thread dan...@beckweb.net (JIRA)














































Daniel Beck
 commented on  JENKINS-25346


"Copy files back to master node" doesn't copy to workspace















@Daniel, getWorkspaceFor() accepts only an implementation of TopLevelItem, so this will work in case of a free style project, what about other cases ? I tried Jenkins javadoc for some time but I couldn't get a clue.

All projects generally are top-level items. It won't cover matrix axes and similar cases though, where project types divide their workspaces further.

What you could try is to determine the TopLevelItem ancestor of the current build's project, and get the workspace of that on the current node (e.g. /jenkins/workspace/foo). If that's a prefix of the current actual workspace (/jenkins/workspace/foo/bar/baz), just append the rest (/bar/baz) to the workspace path on master

It seems to me that the design of this feature is broken if you need to know about details like that, and an approximation and/or specifically adding support for job types is the best you can do.



























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.


[JIRA] [copy-to-slave-plugin] (JENKINS-25346) "Copy files back to master node" doesn't copy to workspace

2015-02-21 Thread svvivekan...@gmail.com (JIRA)














































Vivekanand SV
 commented on  JENKINS-25346


"Copy files back to master node" doesn't copy to workspace















@ Aaron, @Dan, @Daniel ... I fixed this and have the changes ready for release, before I release I need your feedback on the paths I chose (asking you people as you might have some real use-cases which can help me decide this)

Assuming the following factors, 

Multiconfiguration Project name - C2S_Test_MultiConf
Axis 1 label - machine
Axis 1 Label values  - Lin_Test1 and master

Axis 2 label - temp_axis
Axis 2 label values  - 1 and 2

the files copied on the master will be @
/home/test/jenkins/workspace/C2S_Test_MultiConf/machine/Lin_Test1/temp_axis/1  
/home/test/jenkins/workspace/C2S_Test_MultiConf/machine/Lin_Test1/temp_axis/2

other machine is master itself, so they wont be copied.

I thought of copying the files into "/home/test/jenkins/workspace/C2S_Test_MultiConf/" itself, but i was thinking these files should be kept separate for each configuration.

For freestyle job, workspace will be the default one "/home/test/jenkins/workspace/C2S_Test_FreeStyle/" where "C2S_Test_FreeStyle" is the project name.

Coming to Maven style jobs, if you guys can give me example paths I can add that for those.



























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.


[JIRA] [copy-to-slave-plugin] (JENKINS-25346) "Copy files back to master node" doesn't copy to workspace

2015-02-20 Thread svvivekan...@gmail.com (JIRA)














































Vivekanand SV
 commented on  JENKINS-25346


"Copy files back to master node" doesn't copy to workspace















@Daniel, getWorkspaceFor() accepts only an implementation of TopLevelItem, so this will work in case of a free style project, what about other cases ? I tried Jenkins javadoc for some time but I couldn't get a clue.

Sorry for posting these questions, I don't have much knowledge about Jenkins code so looking for all help.



























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.


[JIRA] [copy-to-slave-plugin] (JENKINS-25346) "Copy files back to master node" doesn't copy to workspace

2015-02-19 Thread svvivekan...@gmail.com (JIRA)














































Vivekanand SV
 commented on  JENKINS-25346


"Copy files back to master node" doesn't copy to workspace















I'll give it a try, thanks.



























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.


[JIRA] [copy-to-slave-plugin] (JENKINS-25346) "Copy files back to master node" doesn't copy to workspace

2015-02-18 Thread dan...@beckweb.net (JIRA)














































Daniel Beck
 commented on  JENKINS-25346


"Copy files back to master node" doesn't copy to workspace















https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/hudson/model/AbstractProject.java#L498

@deprecated as of 1.319

This will not guarantee to point to the master node anyway.



I'd try Jenkins.getInstance().getWorkspaceFor(project) as that'll return a workspace on the master node. Not sure whether it's correct in all cases in the context of this plugin as I don't use it.



























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.


[JIRA] [copy-to-slave-plugin] (JENKINS-25346) "Copy files back to master node" doesn't copy to workspace

2015-02-18 Thread svvivekan...@gmail.com (JIRA)














































Vivekanand SV
 commented on  JENKINS-25346


"Copy files back to master node" doesn't copy to workspace















@Daniel, I have done the following code based on your comment ...

< - DIFF START  >

LINE 57


	projectWorkspaceOnMaster = new FilePath(new File(freeStyleProject.getRootDir(), "workspace"));
+projectWorkspaceOnMaster = freeStyleProject.getWorkspace();



LINE 61


	projectWorkspaceOnMaster = new FilePath(new File(project.getRootDir(), "workspace"));
+projectWorkspaceOnMaster = project.getWorkspace();



< - DIFF END  >

Can I know your review comments for this please ?



























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.


[JIRA] [copy-to-slave-plugin] (JENKINS-25346) "Copy files back to master node" doesn't copy to workspace

2015-02-18 Thread svvivekan...@gmail.com (JIRA)












































  
Vivekanand SV
 edited a comment on  JENKINS-25346


"Copy files back to master node" doesn't copy to workspace
















@Daniel, I have done the following code based on your comment ...

< - DIFF START  >

LINE 57

 DELprojectWorkspaceOnMaster = new FilePath(new File(freeStyleProject.getRootDir(), "workspace"));
 ADDprojectWorkspaceOnMaster = freeStyleProject.getWorkspace();

LINE 61

 DELprojectWorkspaceOnMaster = new FilePath(new File(project.getRootDir(), "workspace"));
 ADDprojectWorkspaceOnMaster = project.getWorkspace();

< - DIFF END  >

Can I know your review comments for this please ?



























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.


[JIRA] [copy-to-slave-plugin] (JENKINS-25346) "Copy files back to master node" doesn't copy to workspace

2015-01-22 Thread d...@cantab.net (JIRA)














































Dan Jarvis
 commented on  JENKINS-25346


"Copy files back to master node" doesn't copy to workspace















I sponsored a $100 bounty on fixing this issue:
https://freedomsponsors.org/issue/623/copy-files-back-to-master-node-doesnt-copy-to-workspace

Please add to the bounty or fix the issue in the next 90 days to claim the money!



























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.