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

if I am doing zip I am not able to upload the .* files i.e. in linux hidden files to s3 bucket.

Ekant Mate June 18, 2019

Need inputs if I can use anything else.

I am not able to upload the .txt files in my s3 bucket.

Below is my pipeline file.

image: atlassian/default-image:2

pipelines:
branches:
master:
- step:
script:
- apt-get update # required to install zip
- apt-get install -y python-pip
- apt-get install -y zip # required for packaging up the application
- pip install boto3==1.3.0 # required for codedeploy_deploy.py
- zip /tmp/html.zip -r * .[^.]* # package up the application for deployment
- python s3_upload.py aassssssssss /tmp/html.zip aassssssssss/test/html.zip # run the deployment script

 

 

1 answer

0 votes
mwatson
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 19, 2019

Does this help? 

i.e. `zip -e /tmp/html.zip .`

This will, however, zip up your .git directory. You could try putting the files your want in a subdir and zipping it:

mkdir build
cp -a stuff build
(cd build && zip -r /tmp/html.zip .)
...

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events