Jenkins 作业无法将文件复制到 MS Azure 存储

Jenkins job failed to copy files to MS Azure storage

我很少在这里提问,但最近两天我遇到了一个我以前从未见过的问题。 这是我的问题: 我是 QA 自动化测试员。我使用 Jenkins 在 QA 服务器上进行自动化测试 运行。当所有测试完成时。 我的另一项工作是将带有测试结果的自动化报告复制到我们的 Microsoft Azure 存储中,我们的团队每天早上都可以在其中查看自动化结果。 一切都很好,昨天之前。但是现在 Jenkins 作业总是无法复制自动化报告的最后 3 个文件。 例如,如果我有 1000 个文件要复制,它将复制 997 个。 如果我有 10 个文件要复制,它将复制 7 个文件,然后失败。 总是最后 3 个文件 我们最近更新了 Jenkins 插件,我认为这可能是问题,但我对 Jenkins 不太满意。 如果您需要任何其他信息,请告诉我。谢谢!

    D:/jenkins/workspace/HillsPRO/HillsPro-UI-Tests/hillspro-ui-automation/target/site/serenity/results.csv D:/jenkins/workspace/HillsPRO/HillsPro-UI-Tests/hillspro-ui-automation/target/site/serenity/scripts D:/jenkins/workspace/HillsPRO/HillsPro-UI-Tests/hillspro-ui-automation/target/site/serenity/serenity-resources D:/jenkins/workspace/HillsPRO/HillsPro-UI-Tests/hillspro-ui-automation/target/site/serenity/summary.txt 'D:\Jenkins\workspace\HillsPRO\aq.hillspro/02_17_2022/Serenity'
ERROR: AzureStorage - Error occurred while uploading to Azure - vmlnaaqreports
com.microsoftopentechnologies.windowsazurestorage.exceptions.WAStorageException: Only 1369/1372 files are successfully uploaded.
    at com.microsoftopentechnologies.windowsazurestorage.service.UploadService.execute(UploadService.java:563)
    at com.microsoftopentechnologies.windowsazurestorage.WAStoragePublisher.perform(WAStoragePublisher.java:472)
    at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:78)
    at hudson.tasks.BuildStepMonitor.perform(BuildStepMonitor.java:33)
    at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:806)
    at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:755)
    at hudson.model.Build$BuildExecution.post2(Build.java:178)
    at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:699)
    at hudson.model.Run.execute(Run.java:1913)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    at hudson.model.ResourceController.execute(ResourceController.java:99)
    at hudson.model.Executor.run(Executor.java:432)
ERROR: Step ‘Upload artifacts to Azure Storage’ aborted due to exception: 
com.microsoftopentechnologies.windowsazurestorage.exceptions.WAStorageException: Only 1369/1372 files are successfully uploaded.
    at com.microsoftopentechnologies.windowsazurestorage.service.UploadService.execute(UploadService.java:563)
    at com.microsoftopentechnologies.windowsazurestorage.WAStoragePublisher.perform(WAStoragePublisher.java:472)
Caused: java.io.IOException: AzureStorage - Error occurred while uploading to Azure - vmlnaaqreports
    at com.microsoftopentechnologies.windowsazurestorage.WAStoragePublisher.perform(WAStoragePublisher.java:502)
    at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:78)
    at hudson.tasks.BuildStepMonitor.perform(BuildStepMonitor.java:33)
    at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:806)
    at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:755)
    at hudson.model.Build$BuildExecution.post2(Build.java:178)
    at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:699)
    at hudson.model.Run.execute(Run.java:1913)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    at hudson.model.ResourceController.execute(ResourceController.java:99)
    at hudson.model.Executor.run(Executor.java:432)
Started calculate disk usage of build
Finished Calculation of disk usage of build in 0 seconds
Started calculate disk usage of workspace
Finished Calculation of disk usage of workspace in 0 seconds
[WS-CLEANUP] Deleting project workspace...
[WS-CLEANUP] Deferred wipeout is used...
[WS-CLEANUP] done
Finished: FAILURE

在我面临同样问题的环境中进行测试。这是因为许多 Azure 插件由 Jenkins 社区团队 维护,截至目前,根据 [ 的文档,这可能需要一些时间=21=]Jenkins 门户。当前显示此状态。

参考:https://plugins.jenkins.io/windows-azure-storage/