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

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