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

Zip file not showing as an artifact

kbaley June 15, 2022

I have the following in my pipeline:

 

- apt-get update && apt-get install zip -y
- zip -r api.zip MyApp/**
- ls .
artifacts:
- api.zip

 

In the log files, I see the files being zipped and the `ls .` step does show an api.zip file. But it doesn't appear in the Artifacts tab nor is it available in subsequent steps. Any thoughts on why?

1 answer

1 accepted

0 votes
Answer accepted
kbaley June 15, 2022

I figured it out. What I left out of my sample was a "cd myFolder". So I was changing directories in my script and the zip file was being created in it, as expected. But I forgot to include the full path to it in the artifacts so it should have been:

artifacts:

- myFolder/api.zip

Omkar posam January 5, 2023

Hi @kbaley I have same issue and even though adding full path during upload it shows path not exist.

https://community.atlassian.com/t5/Bitbucket-questions/Pipeline-artifact-issue/qaq-p/2231012#U2231412

 

Also can you help how to zip subfolders in the build folder...Because it is only zipping my files and not sub-folders.

link to pipeline

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events