Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-11962

Symlinking lastSuccessful build shouldn't fail with concurrent jobs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • core
    • Jenkins 1.438
      Concurrent job
      3 builds running

      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.

        1. ScreenShot.png
          ScreenShot.png
          213 kB
        2. error
          15 kB
        3. bugchugger_cleanup_1098518.txt
          0.5 kB
        4. bugchugger_cleanup_1098517.txt
          0.5 kB
        5. bugchugger_cleanup_1098516.txt
          0.6 kB

            Unassigned Unassigned
            jorgenpt Jørgen Tjernø
            Votes:
            4 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: