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

Event before artifact directory is destroyed on re-run

Christopher Dancy
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.
July 22, 2013

Looking for an event/process/call-back to trigger before an artifact-directory is blown away on a failed-job-re-run. I've looked at, and tested w/, what I believe to be all events and none of them execute before the artifact is deleted on a re-run. RestartFailedStageAction appears to execute just after this directory is blown away. I want to be able to manipulate that artifact directory BEFORE it gets blown away on a failed-job-re-run. Any ideas?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
EddieW
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.
April 1, 2014

It may be occuring in the buildresultdeleted or similar events, https://docs.atlassian.com/atlassian-bamboo/2.7/com/atlassian/bamboo/event/BuildResultDeletedEvent.html

If that fails I would instead grab a hook like https://docs.atlassian.com/atlassian-bamboo/2.7/com/atlassian/bamboo/v2/build/events/PostBuildCompletedEvent.html

and (if failing) do the work you need right then instead.

TAGS
AUG Leaders

Atlassian Community Events