[JIRA] (JENKINS-58424) Error occurred while uploading to Azure - Fail to upload archive to blob

1 view
Skip to first unread message

hayden@haydenball.me.uk (JIRA)

unread,
Jul 10, 2019, 8:10:11 AM7/10/19
to jenkinsc...@googlegroups.com
Hayden Ball created an issue
 
Jenkins / Bug JENKINS-58424
Error occurred while uploading to Azure - Fail to upload archive to blob
Issue Type: Bug Bug
Assignee: Azure DevOps
Components: windows-azure-storage-plugin
Created: 2019-07-10 12:09
Priority: Minor Minor
Reporter: Hayden Ball

From a pipeline:

        azureUpload(
          storageCredentialId: "azure-jenkins-storage", storageType: "blobstorage",
          containerName: "artifacts", filesPath: "*.tar.gz", virtualPath: "jenkinsbackups"
        )

Result is:

[2019-07-10T11:52:08.553Z] MicrosoftAzureStorage - Container name: artifacts

[2019-07-10T11:52:08.553Z] MicrosoftAzureStorage - share name: 

[2019-07-10T11:52:08.553Z] MicrosoftAzureStorage - File path: *.tar.gz

[2019-07-10T11:52:08.553Z] MicrosoftAzureStorage - Virtual path: jenkinsbackups/

[2019-07-10T11:52:08.553Z] MicrosoftAzureStorage - Exclude path: 

[2019-07-10T11:52:08.553Z] MicrosoftAzureStorage - Uploading files to Microsoft Azure

[2019-07-10T11:52:25.392Z] ERROR: MicrosoftAzureStorage - Error occurred while uploading to Azure - <storageaccountname>

[2019-07-10T11:52:25.392Z] com.microsoftopentechnologies.windowsazurestorage.exceptions.WAStorageException: Fail to upload archive to blob

[2019-07-10T11:52:25.393Z] 	at com.microsoftopentechnologies.windowsazurestorage.service.UploadToBlobService.uploadIndividuals(UploadToBlobService.java:143)

[2019-07-10T11:52:25.393Z] 	at com.microsoftopentechnologies.windowsazurestorage.service.UploadService.execute(UploadService.java:702)

[2019-07-10T11:52:25.393Z] 	at com.microsoftopentechnologies.windowsazurestorage.WAStoragePublisher.perform(WAStoragePublisher.java:423)

[2019-07-10T11:52:25.393Z] 	at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:80)

[2019-07-10T11:52:25.393Z] 	at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:67)

[2019-07-10T11:52:25.393Z] 	at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)

[2019-07-10T11:52:25.393Z] 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

[2019-07-10T11:52:25.393Z] 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)

[2019-07-10T11:52:25.393Z] 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

[2019-07-10T11:52:25.393Z] 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

[2019-07-10T11:52:25.393Z] 	at java.lang.Thread.run(Thread.java:748)

[2019-07-10T11:52:25.393Z] Caused by: java.io.IOException: java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: Invalid prefix or suffix

[2019-07-10T11:52:25.393Z] 	at com.microsoftopentechnologies.windowsazurestorage.service.UploadService$UploadOnSlave.invoke(UploadService.java:363)

[2019-07-10T11:52:25.393Z] 	at com.microsoftopentechnologies.windowsazurestorage.service.UploadService$UploadOnSlave.invoke(UploadService.java:336)

[2019-07-10T11:52:25.393Z] 	at hudson.FilePath.act(FilePath.java:1076)

[2019-07-10T11:52:25.393Z] 	at hudson.FilePath.act(FilePath.java:1059)

[2019-07-10T11:52:25.393Z] 	at com.microsoftopentechnologies.windowsazurestorage.service.UploadToBlobService.uploadIndividuals(UploadToBlobService.java:134)

[2019-07-10T11:52:25.393Z] 	... 10 more

[2019-07-10T11:52:25.393Z] Caused by: java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: Invalid prefix or suffix

[2019-07-10T11:52:25.393Z] 	at java.util.concurrent.FutureTask.report(FutureTask.java:122)

[2019-07-10T11:52:25.393Z] 	at java.util.concurrent.FutureTask.get(FutureTask.java:192)

[2019-07-10T11:52:25.393Z] 	at com.microsoftopentechnologies.windowsazurestorage.service.UploadService$UploadOnSlave.invoke(UploadService.java:360)

[2019-07-10T11:52:25.393Z] 	... 14 more

[2019-07-10T11:52:25.395Z] Caused by: java.lang.IllegalArgumentException: Invalid prefix or suffix

[2019-07-10T11:52:25.395Z] 	at java.nio.file.TempFileHelper.generatePath(TempFileHelper.java:63)

[2019-07-10T11:52:25.395Z] 	at java.nio.file.TempFileHelper.create(TempFileHelper.java:127)

[2019-07-10T11:52:25.395Z] 	at java.nio.file.TempFileHelper.createTempDirectory(TempFileHelper.java:173)

[2019-07-10T11:52:25.395Z] 	at java.nio.file.Files.createTempDirectory(Files.java:991)

[2019-07-10T11:52:25.395Z] 	at com.microsoftopentechnologies.windowsazurestorage.service.UploadService$UploadThread.call(UploadService.java:452)

[2019-07-10T11:52:25.395Z] 	at com.microsoftopentechnologies.windowsazurestorage.service.UploadService$UploadThread.call(UploadService.java:413)

[2019-07-10T11:52:25.395Z] 	... 4 more

I wasn't asked to provide a prefix or suffix anywhere, so I've no idea what's going on.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

jieshe@microsoft.com (JIRA)

unread,
Jul 10, 2019, 10:01:02 PM7/10/19
to jenkinsc...@googlegroups.com

jieshe@microsoft.com (JIRA)

unread,
Jul 11, 2019, 1:48:01 AM7/11/19
to jenkinsc...@googlegroups.com
Jie Shen commented on Bug JENKINS-58424
 
Re: Error occurred while uploading to Azure - Fail to upload archive to blob

Thanks for reporting this issue. Fix has been released as 1.0.3.

jieshe@microsoft.com (JIRA)

unread,
Jul 11, 2019, 1:49:03 AM7/11/19
to jenkinsc...@googlegroups.com
Jie Shen resolved as Fixed
 
Change By: Jie Shen
Status: Open Resolved
Resolution: Fixed
Released As: 1.0.3

hayden@haydenball.me.uk (JIRA)

unread,
Jul 11, 2019, 4:16:01 PM7/11/19
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages