We have a build process that takes several hours to run in totality, however it is made up of four largely independent parts. If we could get the previous build results, we can look at the changes between the two revisions, and re-use the parts that have not changed, and rebuild that parts that have. This could potentially save us a lot of time for build, allowing for more rapid and continuous building and feedback.
I can easily find the previous revision in our script with ${bamboo.planRepository.previousRevision}, and thus calculate the differences. The outputs are stored in as a shared resource, but how can I get that previous resource from my script?