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

lastSuccessfulBuild symlink isn't being created anymore

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • build-publisher-plugin
    • None
    • AIX 5.3, running hudson 1.352

      I upgraded hudson from 1.276 to hudson 1.352 last week. With the new release, my lastSuccessful symlink is not being created anymore during the build process. before:

      aaronlab@btvxamsioidev1:/afs/btv.ibm.com/u/aaronlab/hudson_jobs/btv300mmbeol.DEV
      $ ls -l
      total 16
      drwx------ 5 32766 staff 2048 Feb 26 13:25 builds
      rw------ 1 4565 hudson 3202 Mar 29 09:51 config.xml
      lrwxr-xr-x 1 32766 staff 26 Feb 26 13:24 lastSuccessful -> builds/2010-02-26_12-56-22
      rw------ 1 32766 hudson 3 Feb 26 12:56 nextBuildNumber

      after:

      aaronlab@btvxamsioidev1:/afs/btv.ibm.com/u/aaronlab/hudson_jobs/mmthis.DEV
      $ ls -l
      total 14
      drwx------ 6 32766 hudson 2048 Mar 29 10:23 builds
      rw------ 1 4565 hudson 3079 Mar 26 23:58 config.xml
      rw------ 1 4565 hudson 3 Mar 29 10:16 nextBuildNumber

          [JENKINS-6096] lastSuccessfulBuild symlink isn't being created anymore

          aaronlab added a comment -

          This issue can be closed (although, I still think its a problem). I found a workaround in issue 5070,http://issues.jenkins-ci.org/browse/JENKINS-5070, By adding -Dhudson.Util.symlinkEscapeHatch=true, the symlinks are being created again.

          Thanks.

          -aaronlab

          aaronlab added a comment - This issue can be closed (although, I still think its a problem). I found a workaround in issue 5070, http://issues.jenkins-ci.org/browse/JENKINS-5070 , By adding -Dhudson.Util.symlinkEscapeHatch=true, the symlinks are being created again. Thanks. -aaronlab

          Steve Roth added a comment -

          We are seeing this as well – Jenkins 1.38, Build Publisher 1.17.

          Steve Roth added a comment - We are seeing this as well – Jenkins 1.38, Build Publisher 1.17.

          vjuranek added a comment -

          Should be fixed by PR #6, released in build published 1.19 (actually not tested on AIX, but if the issue is still present, it's rather but in Jenkins core, namely in Utils#createSymlink)

          vjuranek added a comment - Should be fixed by PR #6, released in build published 1.19 (actually not tested on AIX, but if the issue is still present, it's rather but in Jenkins core, namely in Utils#createSymlink)

          Code changed in jenkins
          User: Rick Sherman
          Path:
          src/main/java/hudson/plugins/build_publisher/ExternalProjectProperty.java
          src/main/java/hudson/plugins/build_publisher/HTTPBuildTransmitter.java
          http://jenkins-ci.org/commit/build-publisher-plugin/974eb0135b9830de84d8b9539487e6c42e83cbcc
          Log:
          Fix for JENKINS-18238

          Updated code to create symlink for the build (based on private instances
          build number) as well as update the PeepHolePermalinks.

          This should resolve:
          JENKINS-18238
          JENKINS-6096

          And may influence:
          JENKINS-18105

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Rick Sherman Path: src/main/java/hudson/plugins/build_publisher/ExternalProjectProperty.java src/main/java/hudson/plugins/build_publisher/HTTPBuildTransmitter.java http://jenkins-ci.org/commit/build-publisher-plugin/974eb0135b9830de84d8b9539487e6c42e83cbcc Log: Fix for JENKINS-18238 Updated code to create symlink for the build (based on private instances build number) as well as update the PeepHolePermalinks. This should resolve: JENKINS-18238 JENKINS-6096 And may influence: JENKINS-18105

            lvotypkova Lucie Votypkova
            aaronlab aaronlab
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: