It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

Deleted user Mar 08, 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

1 vote
Answer accepted
rgomis Atlassian Team Mar 09, 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 Mar 10, 2019

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

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?

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

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket Pipelines

What We Learned When We Researched Open Source Vulnerabilities in 7 Popular Coding Languages

...hey are a part of us, shaping how we interact with the world around us. The same holds true for programming languages when we think about how different kinds of vulnerabilities raise their heads in t...

156 views 0 1
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you