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?