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?
Community moderators have prevented the ability to post new answers.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.