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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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

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
Community showcase
Published in Apps & Integrations

🍻🍂Apptoberfest Update: Upcoming Virtual Events 🎉

Hello Community! I hope you've been enjoying the 🍂Apptoberfestivities🍂 (I know I have!) The event is heating up next week with a series of virtual events that we're calling the 🍻🍂Partner App ...

147 views 2 12
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you