Yeah, this is how I'm doing it right now (don't know if there's a better way to do it): build = Thread.currentThread().executable upstreamBuilds = build.getUpstreamBuilds()
The problem is that it's not easy to determine which upstream build triggered the current build. On Tue, Mar 20, 2012 at 5:51 PM, Andrew Bayer <[email protected]>wrote: > I think you'd have to use the system groovy build step to do this, but it > should be possible there. > > A. > > > On Tue, Mar 20, 2012 at 10:08 AM, Nicky Ramone <[email protected]> wrote: > >> Hi. >> >> Is it possible to obtain the upstream build objects in a groovy script >> executed by the Groovy Plugin? >> You can do this in the Groovy Post Build Plugin with: >> manager.build.getUpstreamBuilds() >> >> Is there a similar way of doing it? >> >> Thanks >> Regards. >> > >
