-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
Ubuntu 14.04 x86_64
OpenJdk 7
Jenkins 2.7.1
Parameterized Trigger plugin 2.31
Due to unreliable network environment,
we'd randomly experience packet lost in network traffic.
Hence,
when an Upstream Jenkins job triggered a Downstream Jenkins job in Post-Build action,
sometimes we found from Upstream Console Log that Upstream did trigger the job,
Triggering a new build of $Downstream
but Downstream job didn't start at all.
We suspect it's that trigger package is lost on a way to Jenkins master.
But I'd like the plugin to be able to handle this case,
and mark the Upstream job as unstable or failure depends on the config
instead of silently finished the job as successful.
After some reading into the source code and Jenkins API documents,
it looks like scheduleBuild2() would return null if the build was not actually scheduled for some reason:
http://javadoc.jenkins-ci.org/jenkins/model/ParameterizedJobMixIn.html#scheduleBuild2(int,%20hudson.model.Action...)
So maybe if the plugin can check the return object of scheduleBuild2(),
then maybe this could handle the error better.