Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

I don't understand which ZIP file my pipeline is reffering to

Deleted user March 8, 2019

I'm trying to deploy an angular app as a web app to azure with this .yml

# Only use spaces to indent your .yml configuration.
# -----
# You can specify a custom docker image from Docker Hub as your build environment.
image: node:10.14

pipelines:
default:
- step:
caches:
- node
script: # Modify the commands below to build your repository.
- npm install
- npm build
- pipe: microsoft/azure-web-apps-deploy:1.0.1
variables:
AZURE_APP_ID: **************
AZURE_PASSWORD: ***********
AZURE_TENANT_ID: ********
AZURE_RESOURCE_GROUP: 'Application'
AZURE_APP_NAME: 'Application'
ZIP_FILE: '?? which zip file ??'
# SLOT: '<string>' # Optional.
# DEBUG: '<boolean>' # Optional.


I'm having trouble understanding which ZIP_FILE this is targeting? Is the build generating this zip file or should I have it uploaded somewhere? I can see this error when building:

INFO: Starting deployment to Azure app service...az webapp deployment source config-zip --resource-group Application --name Application --src app.zipERROR: [Errno 2] No such file or directory: '/opt/atlassian/pipelines/agent/build/app.zip'Traceback (most recent call last):

Any help? I can't find any valuable documentation.

Thanks

1 answer

1 accepted

2 votes
Answer accepted
Raul Gomis
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 9, 2019

Hey @[deleted] ,

You need to create an artifact (zip file) of your application to deploy it to Azure Web Apps.

You can check this example: https://bitbucket.org/microsoft/example-azure-web-apps-deploy/src/master/bitbucket-pipelines.yml

Regards,

Raul

Deleted user March 10, 2019

Great! Thanks a lot for your answer, this helped me out!

Like Raul Gomis likes this
Bradley McCrorey October 1, 2019

Great answer - but there's an issue with the "zip" command, as it doesn't appear to use the variable to name the zip file, but rather just uses the actual text. Any tips here?

Bradley McCrorey October 1, 2019

ignore me - I figured out what I was doing wrong (changed the filename, but forgot to change the "artifacts" directive). Thanks for the solution! 👍🏼

Like Raul Gomis likes this
geoffrey-ttro February 1, 2022
Igor Stoyanov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 7, 2022

@geoffrey-ttro hi.
What do you want to be updated in documentation?
Regards, Igor

geoffrey-ttro February 7, 2022

@Igor Stoyanov it should mention that a prior step is necessary to create the Zip artifact of the repository, like the example shows in the Microsoft repository in the accepted answer.

Like Igor Stoyanov likes this
Igor Stoyanov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 7, 2022

@geoffrey-ttro  Thanks for feedback, we will update the documentation.

Like geoffrey-ttro likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events