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

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

Felipe Reis
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 23, 2014

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

0 votes
Answer accepted
Felipe Reis
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 24, 2014

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
TAGS
AUG Leaders

Atlassian Community Events