When I try to request an assembly using groovy, I call
myBuild.getCauses()
I see in the Jenkins interface (assembly screen) that this assembly has two reasons: UserIdCause and UpstreamCause. However, when I interrogate the same assembly with groovy above, I get only one reason, which is UserIdCause. There must be some method of getting UpstreamCause from the assembly, or it will not be present in the user interface.
I use the Build Pipeline plugin to manually run assemblies.
source share