When running this job with parallel enabled the parallel jobs terminate early causing failures.
Files that were available at the beginning of parallel jobs are removed and errors such as:
[4.8.1] /usr/local/bin/ruby: No such file or directory – extconf.rb (LoadError)
[4.8.1] Gem files will remain installed in /usr/local/bundle/gems/json-1.8.6 for
[4.8.1] Errno::ENOENT: No such file or directory @ chmod_internal
When the parallel function is disabled the job runs without an issue but obviously takes longer since it can't take advantage of the parallel processing.
Attached is the 2 jobs referencing the same shared library but with different tag references for the paralleldisabled and "enabled" versions for the required methods used by this job.
As long as kubernetes-plugin is installed and configured this job should be able to run anywhere with an internet connection to retrieve the shared library and download the required images.
Might be related to #44152