Howdy Group,
I've got a build flow in which things can, and do go wrong.
When things go wrong with a downstream job I'm running, and I've created a
reference to the build, the reference winds up being null since an
exception is thrown so far downstream that the build() step is never
completed, thus no handy reference to the build.
Is there any way I can tickle the DSL to wait to throw that exception until
I return a reference to the failed build, so I can mine it for useful info
after it fails?
In pseudocode:
parallel {
def passingJob = build("SomePassingJob")
// Works for passingJob, but not for failingJob since the exception
prevents build() from returning valid reference
postProcessing(passingJob)
def jobShouldFail = build("SomeFailingJob")
postProcessing(failingJob)
}
def SomePostProcessing(def job)
{
println job.getProject().getName()
}
Anyone have any suggestions as to what I can do here? The exception thrown
is really devoid of anything useful, and I'm half-tempted to modify the
exception handler in the Build Flow plugin to stuff the reference to the
job into the thrown exception.
As always, all help is appreciated.
Adam
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/81ebeeb2-7249-447a-afe7-5ed01d4bd610%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.