|
||||||||
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.
Hi Daniel,
Thanks for looking into it. Just for the record I am using Jenkins 1.570 and the rename seems to correctly to rename the job but not all builds get moved over. It also throws the exception below though.
java.io.IOException: failed to rename /jenkinsBuilds/TEST_rename/builds to /jenkinsBuilds/TEST_rename_test/builds
at hudson.model.Job.renameTo(Job.java:621)
at hudson.model.Job.doDoRename(Job.java:1403)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
Looking at the actual file system I see:
jenkins@XXX:/jenkinsBuilds/TEST_rename$ cd builds/
jenkins@XXX:/jenkinsBuilds/TEST_rename/builds$ ls
1 19 2014-07-30_17-23-04 2014-07-31_09-56-51 2014-07-31_10-26-19 28 lastFailedBuild
10 2 2014-07-30_17-23-30 2014-07-31_09-57-16 2014-07-31_10-26-40 29 lastStableBuild
11 20 2014-07-30_17-24-08 2014-07-31_09-57-57 2014-07-31_11-12-08 3 lastSuccessfulBuild
12 2014-07-30_16-48-31 2014-07-30_17-24-54 2014-07-31_10-05-06 21 30 lastUnstableBuild
13 2014-07-30_17-07-42 2014-07-31_09-29-30 2014-07-31_10-08-27 22 4 lastUnsuccessfulBuild
14 2014-07-30_17-09-56 2014-07-31_09-30-18 2014-07-31_10-17-19 23 5
15 2014-07-30_17-11-57 2014-07-31_09-42-30 2014-07-31_10-19-40 24 6
16 2014-07-30_17-12-39 2014-07-31_09-51-33 2014-07-31_10-21-26 25 7
17 2014-07-30_17-14-08 2014-07-31_09-54-51 2014-07-31_10-22-25 26 8
18 2014-07-30_17-22-21 2014-07-31_09-55-25 2014-07-31_10-24-56 27 9
...
jenkins@XXX:/jenkinsBuilds$ cd TEST_rename_test/
jenkins@XXX:/jenkinsBuilds/TEST_rename_test$ ls
builds
jenkins@XXX:/jenkinsBuilds/TEST_rename_test$ cd builds/
jenkins@XXX:/jenkinsBuilds/TEST_rename_test/builds$ ls
28 30 lastFailedBuild lastStableBuild lastSuccessfulBuild lastUnstableBuild lastUnsuccessfulBuild
It is fairly obvious something is going wrong. Manually copying the files sorts out the problem ofcourse.