-
Bug
-
Resolution: Fixed
-
Major
-
None
-
jenkins 2.7.4, email ext plugin 2.58
-
-
2.79
I have downstream job. When this job is triggered by more than one upstream builds it takes developers only from first build.
My setup is jobA->jobB
If jobB with some run number x is triggered by jobA with number y and number y+1, and jobB x fails ext email plugin takes developers from jobA x build for culprits list and developers from joB x+1 build do not receive email about failed downstream job.
- duplicates
-
JENKINS-46821 Upstream committer recipient provider does not consider all upstream causes
-
- Resolved
-
- links to
I'm not sure I understand the issue here. jobA is run twice and it triggers TWO runs of jobB or just one? Which recipient provider are you using in your jobB? If I assume UpstreamCommitters, then the following code is used: https://github.com/jenkinsci/email-ext-plugin/blob/master/src/main/java/hudson/plugins/emailext/plugins/recipients/UpstreamComitterRecipientProvider.java#L51
This uses the UpstreamCause to determine what triggered the build, this should resolve to the correct upstream instance of jobA if two jobB's are triggered (one for each trigger of jobA). If only one jobB is triggered, then only one jobA will be the upstream cause.