You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What Operating System are you using (both controller, and any agents involved in the problem)?
Fedora Server 38
Reproduction steps
Run a multi-stage pipeline build containing the allure() step in one of the stages (or 'post').
Let it finish and make sure the following file is created on the Jenkins master: jobs/<job-name>/branches/<branch-name>/builds/1/archive/allure-report.zip
Run a second build using the "Restart from Stage" pipeline function.
Observe that jobs/<job-name>/branches/<branch-name>/builds/2/archive/allure-report.zip is immediately copied over from the first build (not sure if this is intended behavior).
Let the build finish. It will error.
Expected Results
allure-report.zip is overridden by the allure() step in the second build.
Actual Results
00:43:13.577 Report successfully generated to /home/jenkins-agent/workspace/myjob_develop/allure-report
00:43:13.632 Allure report was successfully generated.
00:43:13.632 Creating artifact for the build.
...
00:43:14.717 Error when executing always post condition:
00:43:14.722 Also: org.jenkinsci.plugins.workflow.actions.ErrorAction$ErrorId: 44c87903-1d50-418a-9347-820d4645a66d
00:43:14.722 java.nio.file.FileAlreadyExistsException: /opt/jenkins/jobs/myjob/branches/develop/builds/1000/archive/allure-report.zip
00:43:14.722 at java.base/sun.nio.fs.UnixCopyFile.move(UnixCopyFile.java:450)
00:43:14.722 at java.base/sun.nio.fs.UnixFileSystemProvider.move(UnixFileSystemProvider.java:267)
00:43:14.722 at java.base/java.nio.file.Files.move(Files.java:1422)
00:43:14.722 at ru.yandex.qatools.allure.jenkins.AllureReportPublisher.saveAllureArtifact(AllureReportPublisher.java:387)
00:43:14.722 at ru.yandex.qatools.allure.jenkins.AllureReportPublisher.generateReport(AllureReportPublisher.java:362)
00:43:14.722 at ru.yandex.qatools.allure.jenkins.AllureReportPublisher.perform(AllureReportPublisher.java:269)
00:43:14.722 at jenkins.tasks.SimpleBuildStep.perform(SimpleBuildStep.java:123)
00:43:14.722 at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:101)
00:43:14.722 at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:71)
00:43:14.722 at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
00:43:14.722 at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
00:43:14.722 at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
00:43:14.722 at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
00:43:14.722 at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
00:43:14.722 at java.base/java.lang.Thread.run(Thread.java:829)
Anything else?
Reverting to 2.30.3 fixed the issue.
The text was updated successfully, but these errors were encountered:
Jenkins and plugins versions report
Environment
What Operating System are you using (both controller, and any agents involved in the problem)?
Fedora Server 38
Reproduction steps
allure()
step in one of the stages (or 'post').jobs/<job-name>/branches/<branch-name>/builds/1/archive/allure-report.zip
jobs/<job-name>/branches/<branch-name>/builds/2/archive/allure-report.zip
is immediately copied over from the first build (not sure if this is intended behavior).Expected Results
allure-report.zip
is overridden by theallure()
step in the second build.Actual Results
Anything else?
Reverting to
2.30.3
fixed the issue.The text was updated successfully, but these errors were encountered: