Closed jekkel closed 7 months ago
I just want to add an additional curiosity which might help to locate the problem:
We have a Windows Master and Linux Slaves. The file in the FileNotFoundException is "c:\home\
yea seems the rtMaven is not an issue and we see this failing with rtGradleRun @yahavi.
My team is also facing a FileNotFoundException issue with rtGradle. Any idea when this issue might be resolved? Thank you.
@jekkel, @swamygoud18 & @WillSmith0327 Thank you all for reporting this issue, Artifactory Jenkins plugin 4.0.4 has been released, including a fix for this issue. Feel free to upgrade. We'd appreciate your feedback on that.
Works for me, thanks.
Works for us, too. Thanks!
After last updates of Jenkins (due to CVE) and artifactory plugins most of our builds fail when running
rtGradleRun
step with a FileNotFoundException:To Reproduce The build jobs have been working before the updates. The build job in question is:
rtBuildInfo
andrtPublishBuildInfo
stepsThe following stage content raises the error on the
rtGradleRun
step:The stage definition resides in a shared pipeline included via shared pipeline library. The failure occurs also if the build steps are inlined into the pipeline natively.
I was able to verify that the mentioned "tmp" folder exists and (if
rtGradleRun
step is executed) the file is actually there, too. But the file is empty. Here is the file listing on the remote after the failure occured:All files in
./artifactory
are empty (0 bytes), the files in./artifactory/artifactory-pipeline-cache/16
are not empty. The files are owned, readable and writable by userjenkins
, the remote Jenkins java process runs on Java 21 as userjenkins
.I was also able to launch a
jshell
on the agent under user jenkins runs with and I was able to manually execute the code which is told to trigger the error here, without the exception being raised:And the file has been created and was non-empty.
This issue seems very similar to #910 . And it's still open as JENKINS-72471
Expected behavior The build should not fail on this exception, gradle build should be invoked.
Versions