May 08 2020 01:34 PM
I am using below YAML script to deploy my artifact on azure web app, it works fine but it doesn't unzip the file on azure web app, it just deploy zip file and my web app doesn't run coz of zip file
I search entire world but not able to get any +ve answer, now i am requesting you to please help me.
- stage: Deploy
displayName: Deploy stage
dependsOn: Build
condition: succeeded()
jobs:
- deployment: Deploy
displayName: Deploy
environment: 'development'
pool:
vmImage: $(vmRunTimeImageName)
strategy:
runOnce:
deploy:
steps:
- task: AzureWebApp@1
inputs:
azureSubscription: '$(azureSubscription)'
appType: 'webAppLinux'
appName: '$(webAppName)'
package: '$(Pipeline.Workspace)/artifact/$(artifactFile)'
deploymentMethod: 'auto'
May 08 2020 02:38 PM
How Are you fine?
I hope So!
In the AzureWebApp@1 the " FILE " is on the:
$(System.DefaultWorkingDirectory)
Accordingly to the documentation the snippet looks for the .zip file on the path above.
Could you try doing like this:
- task: AzureWebApp@1
inputs:
azureSubscription: '<Azure service connection>'
appName: '<Name of web app>'
package: $(System.DefaultWorkingDirectory)/**/*.zip
Documentation Link: https://docs.microsoft.com/en-us/azure/devops/pipelines/targets/webapp?view=azure-devops&tabs=yaml
Let me know if I could help you with this.
May 10 2020 06:43 AM
@RodNet Thanks for your response but unfortunately i tried this approach but it doesn't work. i got an error that no package found with specified pattern
:(
May 10 2020 07:34 AM - edited May 10 2020 07:34 AM