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

Why do i get this error? https://bitbucket.org/humblebee/happy-co-hive-12/pipelines/results/55/steps

image: node:16

pipelines:
default:
- parallel:
- step:
name: Build
caches:
- node
script:
- npm install
- step:
name: Code linting
script:
- npm install eslint
- npx eslint .
caches:
- node
branches:
master:
- parallel:
- step:
name: Build
caches:
- node
script:
- npm install
- apt update && apt install zip
#Debug
- ls
# Exclude files to be ignored
- zip -r app-$BITBUCKET_BUILD_NUMBER.zip .
#Debug
- ls
artifacts:
- 'app-$BITBUCKET_BUILD_NUMBER.zip'
- step:
name: Security Scan
script:
- pipe: atlassian/git-secrets-scan:0.5.1
- step:
name: Deploy to Production
trigger: manual
deployment: Production
script:
- ls
- pipe: atlassian/azure-web-apps-deploy:1.0.1
variables:
AZURE_APP_ID: ''
AZURE_PASSWORD: ''
AZURE_TENANT_ID: ''
AZURE_RESOURCE_GROUP: '
AZURE_APP_NAME: ''
ZIP_FILE: 'app-$BITBUCKET_BUILD_NUMBER.zip'

1 answer

0 votes
Mark C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Oct 19, 2023

Hi @Abdelilah Achir


Welcome to the community.

Would it be possible for you to let us know what specific error message you're getting?

Regards,

Mark C

Hi Mark,

 

I can't paste directly the error, but it says that there is no such file or directory app-58.zip

Igor Stoyanov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Oct 20, 2023 • edited

@Abdelilah Achir hi. The error points you that you don't have app-58.zip archive provided with your path. Ensure that you have this zip before pipe execution:

script:
- echo ls -alt  # ensure your archive is present
pipeatlassian/azure-web-apps-deploy:1.0.1
...

 Regards, Igor

Like Abdelilah Achir likes this

Thanks for answering Igor, as you can se at the pipeline, I do LS to see if the zip is present at the current directory. But is not, that’s why I wonder why is not in there if it’s been created at the previous step. And when I do a LS at the previous step I do see the zip file.

Mark C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Oct 22, 2023

Hi @Abdelilah Achir

Thanks for that information.

I can see now that this is because you used an environment variable as part of the artifacts folder. Unfortunately, we currently do not support environment variables as artifact paths.

We do have an existing feature request for it that can be located through this link. -
https://jira.atlassian.com/browse/BCLOUD-21666

You can upvote and watch it for now so that you'll be notified of any updates from our team when the feature becomes available on Bitbucket Cloud.

As a workaround, please kindly use an exact folder artifacts folder path.

Regards,
Mark C

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events