ci-jenkins-pipelines
ci-jenkins-pipelines copied to clipboard
Build sub-job generation is not thread safe
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.
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.
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.