Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Abdelilah Achir October 19, 2023
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.
October 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

Abdelilah Achir October 20, 2023

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.
October 20, 2023

@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
Abdelilah Achir October 21, 2023

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.
October 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