jenkinsci / jenkinsci/java-client-api
when running in multithreading separate thread triggers the build
- Vorherrschende Sprache
- Java
- Sterne
- 913
- Forks
- 466
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
Running this code in parallel only starts one build, since they all refere to the same queue item
I am creating new jenkins server for each thread but using the same credentials
` try {
MTJenkinsUtil mtJenkinsUtil = new MTJenkinsUtil();
JenkinsServer jenkinsServer = mtJenkinsUtil.getJenkinsServer();
Job myJob = jenkinsServer.getJob(job);
String queue = myJob.build(params, true).getQueueItemUrlPart();
LOGGER.info(queue);
//BuildWithDetails buildWithDetails = qaJenkinsServer.
`
10:57:59.219 [pool-1-thread-3] INFO TestMTJobild - https://qajenkins/queue/item/5160/
10:57:59.225 [pool-1-thread-2] INFO TestMTJobild - https://qajenkins/queue/item/5160/
10:57:59.227 [pool-1-thread-1] INFO TestMTJobild - https://qajenkins/queue/item/5160/
10:57:59.227 [pool-1-thread-4] INFO TestMTJobild - https://qajenkins/queue/item/5160/
Beitragsleitfaden
Rechercherichtung
Start with the multithreaded call to Job.build(params, true) shown in the report and inspect how queue item URLs are returned for concurrent requests. Reproduce the four parallel calls using MTJenkinsUtil and determine the expected distinct queue behavior; done should include a verified fix and regression coverage for concurrent builds.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- java
- Bereich
- api
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100