jenkinsci / jenkinsci/parameterized-trigger-plugin
[JENKINS-31640] TRIGGERED_BUILD_RUN_COUNT doesn't properly update when you trigger many jobs with the same name
- Dominant language
- Java
- Stars
- 77
- Forks
- 174
- Avg merge
- 22h 27m
- Merged PRs (30d)
- 1
Description
We just upgraded and I was excited to see the new TRIGGERED_BUILD_RUN_COUNT env vars however I am seeing a bug with them
I have a MultiPlugin Job that has 1 phase and calls something like 45 jobs in that phase
These jobs are ALL the same exact jenkins job, but I pass different parameters to them
Everything goes well, but at the very end, when I look at the ENV vars, I am always short one or two in the
TRIGGERED_BUILD_RUN_COUNT and the TRIGGERED_JOB_NAMES
so those above will match, but they are short. You can see the other vars show 45 properly and the counts are right but these do not, which makes it hard for me to get the results from them since I am missing a build number. Are there any workarounds to this? I need to copy artifacts from these jobs so need these build numbers for the subjobs
I attached all my env vars printout so you can see
---
Originally reported by
lorelei, imported from: TRIGGERED_BUILD_RUN_COUNT doesn't properly update when you trigger many jobs with the same name
Raw content of original issue
We just upgraded and I was excited to see the new TRIGGERED_BUILD_RUN_COUNT env vars however I am seeing a bug with them
I have a MultiPlugin Job that has 1 phase and calls something like 45 jobs in that phase
These jobs are ALL the same exact jenkins job, but I pass different parameters to themEverything goes well, but at the very end, when I look at the ENV vars, I am always short one or two in the
TRIGGERED_BUILD_RUN_COUNT and the TRIGGERED_JOB_NAMESso those above will match, but they are short. You can see the other vars show 45 properly and the counts are right but these do not, which makes it hard for me to get the results from them since I am missing a build number. Are there any workarounds to this? I need to copy artifacts from these jobs so need these build numbers for the subjobs
I attached all my env vars printout so you can see
- environment:
Ubuntu with latest updates for plugins and jenkins
2 attachments
- [envvars.txt](https://issues.jenkins.io/secure/attachment/31305/envvars.txt)
- [envvars.txt](https://issues.jenkins.io/secure/attachment/31304/envvars.txt)
Contributor guide
Assessment
This issue has not been assessed yet.