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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,460,334
Community Members
 
Community Events
176
Community Groups

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

2 votes
Answer accepted
Raul Gomis 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!

Like Raul Gomis likes this

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! 👍🏼

Like Raul Gomis likes this

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

@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

@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

Atlassian Community Events