ci-jenkins-pipelines icon indicating copy to clipboard operation
ci-jenkins-pipelines copied to clipboard

Build sub-job generation is not thread safe

Open adamfarley opened this issue 4 years ago • 3 comments

What are you trying to do?

Launch multiple test jobs at the end of a build.

Expected behaviour:

These jobs should be launched in a threadsafe manner, enabling them to load the libraries they need, and for the resultant jobs to find a suitable checks publisher.

Observed behaviour:

Once we enter the multi-threaded section of openjdk_build_pipeline.groovy, we become unable to load new libraries (such as openjdk-jenkins-helper), and the test jobs it generates sometimes show this non-fatal error:

[Checks API] No suitable checks publisher found.

It's possible that both of these issues are caused by the groovy pipeline scripts being unable to generate new jobs in a threadsafe way. This issue is to cover centralized discussion over whether this is causing the problem, and ways in which it can be resolved.

adamfarley avatar Dec 07 '20 12:12 adamfarley

karianna avatar Jan 27 '21 15:01 karianna

karianna has contributed $20.00 to this issue on Rysolv.

The total bounty is now $20.00. Solve this issue on Rysolv to earn this bounty.

rysolv-bot avatar Jan 27 '21 15:01 rysolv-bot

I'm testing whether or not Rysolv interacts cleanly with GitHub issues - I've funded this one purely as an experiment and this is not an indication that the TSC has approved doing this more broadly.

karianna avatar Jan 27 '21 16:01 karianna