-
Bug
-
Resolution: Fixed
-
Minor
-
Jenkins 2.361.1
promoted builds plugin Version 892.vd6219fc0a_efb
Debian Buster
-
-
936.va_571a_a_b_f8da_5
When I create a new job by copying from another one, the promotion configuration is not copied anymore.
Here is the log :
Sep 27 10:41:47 jenkins[17062]: 2022-09-27 08:41:47.277+0000 [id=12597]#011WARNING#011h.p.promoted_builds.CopyListener#onCopied: Failed to copy/load promotion /var/lib/jenkins/jobs/SourceProject/promotions/GoToPreProd into new job Sep 27 10:41:47 jenkins[17062]: java.nio.file.NoSuchFileException: /var/lib/jenkins/jobs/NewProject/promotions/GoToPreProd/config.xml Sep 27 10:41:47 jenkins[17062]: #011at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92) Sep 27 10:41:47 jenkins[17062]: #011at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111) Sep 27 10:41:47 jenkins[17062]: #011at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116) Sep 27 10:41:47 jenkins[17062]: #011at java.base/sun.nio.fs.UnixCopyFile.copyFile(UnixCopyFile.java:248) Sep 27 10:41:47 jenkins[17062]: #011at java.base/sun.nio.fs.UnixCopyFile.copy(UnixCopyFile.java:603) Sep 27 10:41:47 jenkins[17062]: #011at java.base/sun.nio.fs.UnixFileSystemProvider.copy(UnixFileSystemProvider.java:258) Sep 27 10:41:47 jenkins[17062]: #011at java.base/java.nio.file.Files.copy(Files.java:1295) Sep 27 10:41:47 jenkins[17062]: #011at hudson.plugins.promoted_builds.CopyListener.onCopied(CopyListener.java:40) Sep 27 10:41:47 jenkins[17062]: #011at hudson.model.listeners.ItemListener.lambda$fireOnCopied$0(ItemListener.java:176) Sep 27 10:41:47 jenkins[17062]: #011at jenkins.util.Listeners.lambda$notify$0(Listeners.java:59) Sep 27 10:41:47 jenkins[17062]: #011at jenkins.util.Listeners.notify(Listeners.java:70) Sep 27 10:41:47 jenkins[17062]: #011at hudson.model.listeners.ItemListener.fireOnCopied(ItemListener.java:176) Sep 27 10:41:47 jenkins[17062]: #011at hudson.model.ItemGroupMixIn.copy(ItemGroupMixIn.java:261) Sep 27 10:41:47 jenkins[17062]: #011at hudson.model.ItemGroupMixIn.createTopLevelItem(ItemGroupMixIn.java:185) Sep 27 10:41:47 jenkins[17062]: #011at jenkins.model.Jenkins.doCreateItem(Jenkins.java:4175) Sep 27 10:41:47 jenkins[17062]: #011at jenkins.model.Jenkins.doCreateItem(Jenkins.java:340) Sep 27 10:41:47 jenkins[17062]: #011at hudson.model.ListView.doCreateItem(ListView.java:377)
I suspect some kind of regression caused by https://github.com/jenkinsci/promoted-builds-plugin/pull/217
Maybe the behavior of the copy function is not the same regarding intermediate folders that could be missing.
The copy is working with build 878.v12d3f7937690
- links to
[JENKINS-69711] promotion configuration is lost when creating a new job by copy
Description |
Original:
When I create a new job by copying from another one, the promotion configuration is not copied anymore.
Here is the log : {noformat} Sep 27 10:41:47 jenkins[17062]: 2022-09-27 08:41:47.277+0000 [id=12597]#011WARNING#011h.p.promoted_builds.CopyListener#onCopied: Failed to copy/load promotion /var/lib/jenkins/jobs/SourceProject/promotions/GoToPreProd into new job Sep 27 10:41:47 jenkins[17062]: java.nio.file.NoSuchFileException: /var/lib/jenkins/jobs/NewProject/promotions/GoToPreProd/config.xml Sep 27 10:41:47 jenkins[17062]: #011at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92) Sep 27 10:41:47 jenkins[17062]: #011at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111) Sep 27 10:41:47 jenkins[17062]: #011at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116) Sep 27 10:41:47 jenkins[17062]: #011at java.base/sun.nio.fs.UnixCopyFile.copyFile(UnixCopyFile.java:248) Sep 27 10:41:47 jenkins[17062]: #011at java.base/sun.nio.fs.UnixCopyFile.copy(UnixCopyFile.java:603) Sep 27 10:41:47 jenkins[17062]: #011at java.base/sun.nio.fs.UnixFileSystemProvider.copy(UnixFileSystemProvider.java:258) Sep 27 10:41:47 jenkins[17062]: #011at java.base/java.nio.file.Files.copy(Files.java:1295) Sep 27 10:41:47 jenkins[17062]: #011at hudson.plugins.promoted_builds.CopyListener.onCopied(CopyListener.java:40) Sep 27 10:41:47 jenkins[17062]: #011at hudson.model.listeners.ItemListener.lambda$fireOnCopied$0(ItemListener.java:176) Sep 27 10:41:47 jenkins[17062]: #011at jenkins.util.Listeners.lambda$notify$0(Listeners.java:59) Sep 27 10:41:47 jenkins[17062]: #011at jenkins.util.Listeners.notify(Listeners.java:70) Sep 27 10:41:47 jenkins[17062]: #011at hudson.model.listeners.ItemListener.fireOnCopied(ItemListener.java:176) Sep 27 10:41:47 jenkins[17062]: #011at hudson.model.ItemGroupMixIn.copy(ItemGroupMixIn.java:261) Sep 27 10:41:47 jenkins[17062]: #011at hudson.model.ItemGroupMixIn.createTopLevelItem(ItemGroupMixIn.java:185) Sep 27 10:41:47 jenkins[17062]: #011at jenkins.model.Jenkins.doCreateItem(Jenkins.java:4175) Sep 27 10:41:47 jenkins[17062]: #011at jenkins.model.Jenkins.doCreateItem(Jenkins.java:340) Sep 27 10:41:47 jenkins[17062]: #011at hudson.model.ListView.doCreateItem(ListView.java:377){noformat} I suspect some kind of regression caused by [https://github.com/jenkinsci/promoted-builds-plugin/pull/217] Maybe the behavior of the copy function is not the same regarding intermediate folders that could be missing. |
New:
When I create a new job by copying from another one, the promotion configuration is not copied anymore.
Here is the log : {noformat} Sep 27 10:41:47 jenkins[17062]: 2022-09-27 08:41:47.277+0000 [id=12597]#011WARNING#011h.p.promoted_builds.CopyListener#onCopied: Failed to copy/load promotion /var/lib/jenkins/jobs/SourceProject/promotions/GoToPreProd into new job Sep 27 10:41:47 jenkins[17062]: java.nio.file.NoSuchFileException: /var/lib/jenkins/jobs/NewProject/promotions/GoToPreProd/config.xml Sep 27 10:41:47 jenkins[17062]: #011at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92) Sep 27 10:41:47 jenkins[17062]: #011at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111) Sep 27 10:41:47 jenkins[17062]: #011at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116) Sep 27 10:41:47 jenkins[17062]: #011at java.base/sun.nio.fs.UnixCopyFile.copyFile(UnixCopyFile.java:248) Sep 27 10:41:47 jenkins[17062]: #011at java.base/sun.nio.fs.UnixCopyFile.copy(UnixCopyFile.java:603) Sep 27 10:41:47 jenkins[17062]: #011at java.base/sun.nio.fs.UnixFileSystemProvider.copy(UnixFileSystemProvider.java:258) Sep 27 10:41:47 jenkins[17062]: #011at java.base/java.nio.file.Files.copy(Files.java:1295) Sep 27 10:41:47 jenkins[17062]: #011at hudson.plugins.promoted_builds.CopyListener.onCopied(CopyListener.java:40) Sep 27 10:41:47 jenkins[17062]: #011at hudson.model.listeners.ItemListener.lambda$fireOnCopied$0(ItemListener.java:176) Sep 27 10:41:47 jenkins[17062]: #011at jenkins.util.Listeners.lambda$notify$0(Listeners.java:59) Sep 27 10:41:47 jenkins[17062]: #011at jenkins.util.Listeners.notify(Listeners.java:70) Sep 27 10:41:47 jenkins[17062]: #011at hudson.model.listeners.ItemListener.fireOnCopied(ItemListener.java:176) Sep 27 10:41:47 jenkins[17062]: #011at hudson.model.ItemGroupMixIn.copy(ItemGroupMixIn.java:261) Sep 27 10:41:47 jenkins[17062]: #011at hudson.model.ItemGroupMixIn.createTopLevelItem(ItemGroupMixIn.java:185) Sep 27 10:41:47 jenkins[17062]: #011at jenkins.model.Jenkins.doCreateItem(Jenkins.java:4175) Sep 27 10:41:47 jenkins[17062]: #011at jenkins.model.Jenkins.doCreateItem(Jenkins.java:340) Sep 27 10:41:47 jenkins[17062]: #011at hudson.model.ListView.doCreateItem(ListView.java:377){noformat} I suspect some kind of regression caused by [https://github.com/jenkinsci/promoted-builds-plugin/pull/217] Maybe the behavior of the copy function is not the same regarding intermediate folders that could be missing. The copy is working with build 878.v12d3f7937690 |
Attachment | New: 2023-10-18_11-06.png [ 61359 ] | |
Attachment | New: 2023-10-18_11-05.png [ 61360 ] |
Assignee | Original: Oleg Nenashev [ oleg_nenashev ] | New: Basil Crow [ basil ] |
Remote Link | New: This issue links to "jenkinsci/promoted-builds-plugin#263 (Web Link)" [ 28988 ] |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Status | Original: In Progress [ 3 ] | New: In Review [ 10005 ] |
Released As | New: 936.va_571a_a_b_f8da_5 | |
Resolution | New: Fixed [ 1 ] | |
Status | Original: In Review [ 10005 ] | New: Closed [ 6 ] |