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

builds/1234, lastSuccessful and lastStable symlinks not created

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Blocker Blocker
    • core
    • None
    • Ubuntu 8.04 LTS
      Linux master 2.6.24-23-server #1 SMP Wed Apr 1 22:14:30 UTC 2009 x86_64 GNU/Linux

      After upgrading from 1.415 to 1.421 the symlinks for builds/$(buildNumber}, lastSuccessful and lastStable are not created. The relevant lines from the build output are

      ln -s 2011-07-20_18-21-48 /var/lib/jenkins/jobs/ps-indexer/builds/877 failed: -1

      at the beginning of the build and

      ln -s builds/2011-07-20_18-21-48 /var/lib/jenkins/jobs/ps-indexer/builds/../lastSuccessful failed: -1
      ln -s builds/2011-07-20_18-21-48 /var/lib/jenkins/jobs/ps-indexer/builds/../lastStable failed: -1

      at the end.

      This used to work before the update and no other changes were made in the system.

      We worked around this issue by adding

      -Dhudson.Util.symlinkEscapeHatch=true

      to JAVA_ARGS in /etc/default/jenkins.

      BTW: Util.createSymlink produces ambiguous logging output for failures. It logs "ln -s ..." even though JNA or PosixAPI may have been used. Furthermore, the PosixAPI fall-back branch does not clear the errmsg variable such the strerror value from JNA gets mixed up with the result code from PosixAPI. Last but not least, it mixes string paths with file objects. It would make sense to move the logging code into the branch for each method (JNA, PosixAPI and LocalProc) and log the actual parameters passed.

            kohsuke Kohsuke Kawaguchi
            eyealike Hannes Schmidt
            Votes:
            18 Vote for this issue
            Watchers:
            16 Start watching this issue

              Created:
              Updated:
              Resolved: