I have 2 stages: build & deploy
In the build stage, my publish task looks like:
- task: PublishPipelineArtifact@1
inputs:
targetPath: $(Build.ArtifactStagingDirectory)/funcabc-1.1.0.zip
artifactName: functionapp
After running the build stage, I can see the artifact in the Azure Pipeline portal/UI. In the completed pipeline run, I click on Artifacts | Published. The file appears. Good so far!
My deployment job/steps are in a different stage. I deploy with something like:
- task: AzureFunctionApp@1
inputs:
azureSubscription: 'valid_srv_conn
appType: functionApp
appName: funcabc
package: $(Pipeline.Workspace)/functionapp/funcabc-1.1.0.zip
I have tried many combinations for the path to package:. The deploy stage is unable to find funcabc-1.1.0.zip.
For troubleshooting, I am running:
- pwsh: |
Get-ChildItem -Path $(Pipeline.Workspace) -Filter *.zip -Recurse | Select-Object FullName
Get-ChildItem -Path "./" -Filter *.zip -Recurse | Select-Object FullName
The troubleshooting script shows 0 file results.
How do I access a published .zip file from a downstream stage?