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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,461,963
Community Members
 
Community Events
176
Community Groups

Zip file not showing as an artifact

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

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

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

Atlassian Community Events