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

The user-provided path myapp.zip does not exist.

Deepak September 30, 2020

My First two steps of pipelines are successful but when I am trying to upload to S3 bucket using the pipe it says the user provided path does not exits .

 

I have properly created Repo variable and also searched on ur documentation , I have used the artifact as well .

 

I am trying to upload to S3 and deploy to EC2.

 

Below is my bitbucket-pipelines.yml 

 

image: node:12.18.4
pipelines:
branches:
feature/develop:
-
step:
name: Installation
caches:
-
node
script:
-
npm install
artifacts:
-
node_modules/** # Save modules for next steps
-
step:
name: Build
script:
-
npm run build:production
artifacts:
-
dist/** # Save build for next steps
-
step:
name: upload
script:
-
pipe: atlassian/aws-code-deploy:0.5.3
variables:
APPLICATION_NAME: $APPLICATION_NAME
S3_BUCKET: $S3_BUCKET
COMMAND: 'upload'
ZIP_FILE: 'myapp.zip'
VERSION_LABEL: 'my-app-1.0.0'
-
step:
name: deploy
script:
-
pipe: atlassian/aws-code-deploy:0.5.3
variables:
AWS_DEFAULT_REGION: $AWS_DEFAULT_REGION
AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
APPLICATION_NAME: $APPLICATION_NAME
DEPLOYMENT_GROUP: $DEPLOYMENT_GROUP
S3_BUCKET: $S3_BUCKET
COMMAND: 'deploy'
WAIT: 'true'
VERSION_LABEL: 'my-app-1.0.0'
IGNORE_APPLICATION_STOP_FAILURES: 'true'
FILE_EXISTS_BEHAVIOR: 'OVERWRITE'

1 answer

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 2, 2020

Hi Deepak and welcome to the community!

Looking at your bitbucket-pipelines.yml file, I don't see any file myapp.zip being generated, which I believe is the reason for the error that you are getting.

In order for this to work, you will need to:

  • add in your script a command that zips the directory you want to upload into a file named myapp.zip
  • in the artifacts of the step where you generate this zip, add the path to myapp.zip file
  • in case you generate the zip file in a directory other than the build directory, then the ZIP_FILE: variable should have as value the path to the myapp.zip instead of only its name.

Please feel free to let me know if this helps and if you have any other questions.

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events