I had three builds running at the same time, and two of them finished during the same second. This lead to the following message on one of them:
ln -s builds/2011-12-01_21-35-22 /var/lib/jenkins/jobs/my_job/builds/../lastSuccessful failed: 17 File exists
The job still succeeded, so it's not a big deal.
This seems like a race condition between rm-ing the old symlink and creating the new one. Maybe ln -sf would work better? I assume it does its operations atomically.
[JENKINS-11962] Symlinking lastSuccessful build shouldn't fail with concurrent jobs
Priority | Original: Minor [ 4 ] | New: Major [ 3 ] |
Affects Version/s | New: current [ 10162 ] | |
Labels | New: artifact jenkins |
Attachment | New: ScreenShot.png [ 27993 ] | |
Attachment | New: bugchugger_cleanup_1098516.txt [ 27994 ] | |
Attachment | New: bugchugger_cleanup_1098517.txt [ 27995 ] | |
Attachment | New: bugchugger_cleanup_1098518.txt [ 27996 ] | |
Attachment | New: error [ 27997 ] |
Found the same problem on Jenkins version: 1.496
4 Jobs running in parallel, the first one has finished successfully (with console "ln -s ... failed: 17 File exists"), but the others stuck forever.