In Azure devops how to copy application zip file to blob storage

0 votes

How to copy the application zip file to blob storage in Azure CICD? I have the YAML below. I want the app.zip copied to blob. The file gets copied, but for some reason, the size of the blob is 1KB. Am I doing something wrong?

Here is the code:

- task: PublishBuildArtifacts@1
  inputs:
    pathtoPublish: '$(Build.ArtifactStagingDirectory)' 
    artifactName: 'release'

- task: ArchiveFiles@2
  inputs:
    rootFolderOrFile: '$(Build.BinariesDirectory)'
    includeRootFolder: true
    archiveType: 'zip'
    archiveFile: '$(Build.ArtifactStagingDirectory)/App.zip'
    replaceExistingArchive: true

- task: AzureFileCopy@3
  inputs:
    SourcePath: '$(Build.ArtifactStagingDirectory)/App.zip'
    azureSubscription: 'testsubscription'
    Destination: 'AzureBlob'
    storage: 'teststorage'
    ContainerName: 'testcontainer'
What am I doing wrong?
Mar 26 in Other DevOps Questions by Kichu
• 17,220 points
55 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Other DevOps Questions

0 votes
0 answers
0 votes
0 answers
0 votes
0 answers
0 votes
1 answer

Is it possible to have a link to raw content of file in Azure DevOps

Sure, here's the call for the rests: GET ...READ MORE

answered Feb 10 in Other DevOps Questions by Bhavitha
• 980 points
59 views
0 votes
1 answer
0 votes
1 answer

How to include Different Types of Workitems in Boards of Azure DevOps?

Predefined backlog levels in Azure DevOps may ...READ MORE

answered Feb 11 in Other DevOps Questions by Bhavitha
• 980 points
123 views
0 votes
1 answer

Which is better azure devops or aws devops?

Hi, It depends according to your use case. ...READ MORE

answered Sep 21, 2020 in Cloud Computing by MD
• 95,340 points
1,188 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP