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

Build fails with out/doctor-alt.tar.gz: Cannot open: No such file or directory

Achala Dissanayake May 24, 2023
alt:
- step:
name: build (alt)
caches:
- node
script:
- echo "Building..."
- npm install -f && npm install -g @angular/cli && mkdir -p out/
- npm run build:alt && tar --owner=0 --group=0 --numeric-owner -czvf out/doctor-alt.tar.gz -C dist/ .
- npm run build:training && tar --owner=0 --group=0 --numeric-owner -czvf out/doctor-training.tar.gz -C dist/ .
artifacts:
- out/*
- step:
name: upload
script:
- echo "Uploading artifacts to S3..."
- pipe: atlassian/aws-s3-deploy:0.3.2
variables:
AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
AWS_DEFAULT_REGION: 'eu-west-2'
S3_BUCKET: 'build-artifacts'
LOCAL_PATH: 'out'

 

 

Error

 

pipeline-error.png

 

This pipeline was running for a longtime without any issue. Suddenly this came up without changing anything to the bitbucket-pipelines.yml file or env variables

1 answer

0 votes
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 25, 2023

Hello @Achala Dissanayake and welcome to the Community!

The error returned in the logs is usually related to the file in question (out/doctor-alt.tar.gz) not existing at the location or path the build process is expecting it to be in. I see you have opened an internal ticket with us related to this issue and one of our support engineers is already working on that ticket. Once the ticket is resolved, feel free to share the solution here, so other users that might face the same issue in the future can try similar steps.

Thank you, @Achala Dissanayake !
Patrik S

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events