Can I create a zip artifact created within a Script task?

My tests generated some screenshots which are located in the target folder. I want to create a ZIP file containing these images and make an artifact out of if.

I have included a script task which creates the zip in the target folder:

zip -r project-web/target/screenshots.zip project-web/target/screenshots-folder

When I run it from the build root folder the zip file is created as expected. However when I run my build in Bamboo I get an error:

Unable to publish artifact:

1 answer

1 accepted

This widget could not be displayed.

I was able to achieve what I needed by creating the ZIP file as part of the maven build. I've used maven ant plugin.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted yesterday in Canada

AUG Lunch Roundtable - August 13 - Highlights

Thanks to everyone who came out today for the lunch AUG - we had some great food and discussion (and ice cream sandwiches to fend off the heat!) The welcome and fun fact was great as well, what an aw...

39 views 2 3
View post

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you