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

Bamboo task with cleanup after later tasks have ran

Marko Lahma
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 11, 2011

Is it possible to create a task that would preprocess a build and cleanup after itself without resorting to final build tasks? My scenario is:

* Run task (MyTask) that modifies version information before build

* Run build task

* Run MyTask's "finally block" that reverts changes made to files

This is quite similar to what TeamCity has to offer for .NET builds: http://confluence.jetbrains.net/display/TCD65/AssemblyInfo+Patcher

So I guess I'm lookin for a task that could register itself both for running as part of process and to get a chance at the finally part to always clean up if somethings goes wrong.

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Przemek Bruski
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 12, 2011

No, you'd need to write a plugin for that - which is not much more complicated than writing a task.

TAGS
AUG Leaders

Atlassian Community Events