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

Build link is not updated properly for lastSuccessfulBuild

      Hello,

       When using the Build Symlink Plugin of version 1.1 in our Jenkins (Version 2.361.4 with Java 11.0.16.1) the build links for the successful builds are not being updated properly. As for our downstream jobs we will be fetching the lastSuccessful artifacts from upstream build this is causing a severe issue. Able to notice that 'permalinks' are updated properly, but softlinks are not proper and is causing problems for us.

        I have tried the below methods to fix the issue, but none worked:

      • reinstalled the plugin itself and restarting Jenkins.
      • Enabling and disabling of the plugin in Plugin Manager.
      • Deleting the last* soft links manually in server and rebuilding is updating the links properly but this solution is not feasible as we have large number of jobs.
      • As in Jenkins official page not able to see other supported plugins to upgrade or downgrade, we are stuck with this version 1.1

      Attached images of permalinks and softlinks for reference where the latest successful build is 187. Please support on how we can procced to fix this issue. Any suggestions and alternatives will also be appreciated.

      Thank you

          [JENKINS-71229] Build link is not updated properly for lastSuccessfulBuild

          Parinith created issue -
          Parinith made changes -
          Description Original: Hello,

           When using the Build Symlink Plugin of version 1.1 in our Jenkins (Version 2.361.4 with Java 11.0.16.1) the build links for the successful builds are not being updated properly. As for our downstream jobs we will be fetching the lastSuccessful artifacts from upstream build this is causing a severe issue. Able to notice that 'permalinks' are updated properly, but softlinks are not proper and is causing problems for us.

            I have tried the below methods to fix the issue, but none worked:
           * reinstalled the plugin itself and restarting Jenkins.
           * Enabling and disabling of the plugin in Plugin Manager.
           * Deleting the last* soft links manually in server and rebuilding is updating the links properly but this solution is not feasible as we have large number of jobs.
           * As in Jenkins official page not able to see other supported plugins to upgrade or downgrade, we are stuck with this version 1.1

          Attached images of permalinks and softlinks for reference. Please support on how we can procced to fix this issue. Any suggestions and alternatives will also be appreciated.

          Thank you
          New: Hello,

           When using the Build Symlink Plugin of version 1.1 in our Jenkins (Version 2.361.4 with Java 11.0.16.1) the build links for the successful builds are not being updated properly. As for our downstream jobs we will be fetching the lastSuccessful artifacts from upstream build this is causing a severe issue. Able to notice that 'permalinks' are updated properly, but softlinks are not proper and is causing problems for us.

            I have tried the below methods to fix the issue, but none worked:
           * reinstalled the plugin itself and restarting Jenkins.
           * Enabling and disabling of the plugin in Plugin Manager.
           * Deleting the last* soft links manually in server and rebuilding is updating the links properly but this solution is not feasible as we have large number of jobs.
           * As in Jenkins official page not able to see other supported plugins to upgrade or downgrade, we are stuck with this version 1.1

          Attached images of permalinks and softlinks for reference where the latest successful build is 187. Please support on how we can procced to fix this issue. Any suggestions and alternatives will also be appreciated.

          Thank you

          Jesse Glick added a comment -

          No idea offhand; I have not touched this plugin in years. You can create a custom logger at FINE level on io.jenkins.plugins.build_symlink and see if it shows any warnings, or other output which is different now than when the links are being properly maintained.

          Jesse Glick added a comment - No idea offhand; I have not touched this plugin in years. You can create a custom logger at FINE level on io.jenkins.plugins.build_symlink and see if it shows any warnings, or other output which is different now than when the links are being properly maintained.

          Parinith added a comment - - edited

          Hello Jesse,

          Thank you for your response, Could you please further support on below query. I am not able to find the option 'io.jenkins.plugins.build_symlink' here. Should i go with 'io.jenkins.plugins.build_symlink.RunListenerImpl' and proceed with FINE level? 

          Parinith added a comment - - edited Hello Jesse, Thank you for your response, Could you please further support on below query. I am not able to find the option 'io.jenkins.plugins.build_symlink' here. Should i go with 'io.jenkins.plugins.build_symlink.RunListenerImpl' and proceed with FINE level? 
          Parinith made changes -
          Attachment New: image-2023-05-15-12-03-46-006.png [ 60448 ]

          Jesse Glick added a comment -

          Either is fine. (The auto completion candidates are just suggestions; parent loggers are not currently offered.)

          Jesse Glick added a comment - Either is fine. (The auto completion candidates are just suggestions; parent loggers are not currently offered.)
          Parinith made changes -
          Attachment New: image-2023-05-16-16-05-14-931.png [ 60455 ]
          Parinith made changes -
          Attachment New: image-2023-05-16-16-05-39-919.png [ 60456 ]

          Parinith added a comment -

          We got the below logs for this build, last successful was 16175, but here its showing 16174

          Parinith added a comment - We got the below logs for this build, last successful was 16175, but here its showing 16174

          Jesse Glick added a comment -

          Not sure. From the log it looks like it is the text file permalinks which is not getting updated: PeepholePermalink.resolve is returning 16174.

          Jesse Glick added a comment - Not sure. From the log it looks like it is the text file permalinks which is not getting updated: PeepholePermalink.resolve is returning 16174.

            Unassigned Unassigned
            parinith_135 Parinith
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: