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

Build History missing in External Job view of Jenkins 2.409 and later

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • Ubuntu 22.04
      Docker jenkins/jenkins:latest-jdk17 (currently Jenkins 2.410)
      Chrome & Firefox
    • 2.413

      The build history is not shown in all of our external jobs. 

      I would expect it to be shown in the sidebar:

       

      the builds are written to filesystem but not shown in GUI

      for above example: /var/lib/docker/volumes/jenkins-docker_jenkins_home/_data/jobs/Test_BuildHistoryMissing/builds

       

      Accessing builds directly via URL is possible. Example: https://\{...}/job/Test_BuildHistoryMissing/9/

      Same for buildTimeTrend. Example: https://\{...}/job/Test_BuildHistoryMissing/buildTimeTrend

        1. run-jenkins-2.412.sh
          0.9 kB
        2. run-jenkins.sh
          0.9 kB
        3. plugins.txt
          0.2 kB
        4. buildTimeTrend_works.png
          buildTimeTrend_works.png
          376 kB
        5. BuildHistory_missing.png
          BuildHistory_missing.png
          333 kB

          [JENKINS-71553] Build History missing in External Job view of Jenkins 2.409 and later

          Torsten added a comment -

          I had to rollback to jenkins/jenkins:2.405-jdk17

          Torsten added a comment - I had to rollback to jenkins/jenkins:2.405-jdk17

          Mark Waite added a comment - - edited

          Thanks for reporting the issue.  I have duplicated the issue.  Steps that I took included:

          1. Create a plugins.txt file that includes the external job monitor plugin and the sshd plugin
          2. Create a run-jenkins.sh that downloads Jenkins 2.401.2 and the plugins listed in plugins.txt
          3. Run run-jenkins.sh and complete the setup wizard by creating a user mwaite with password mwaite and choosing to install no additional plugins
          4. Add my ssh public keys to the user mwaite account on Jenkins so that I can connect to Jenkins with ssh command line
          5. Enable Jenkins ssh server on port 8022 using the "Manage Jenkins" -> "Global Security" settings
          6. Create an external monitored job named external-job
          7. Add a few build results to the external monitored job with the command
            date | gzip | ssh -p 8022 testing-a.markwaite.net set-external-build-result --job external-job --result 0 --duration $RANDOM --log -
          8. Confirm that the build results are visible for the job named external-job
          9. Stop Jenkins
          10. Run the run-jenkins-2.412.sh script to download and start Jenkins 2.412 using the same directory as was used for the 2.401.2 installation
          11. Confirm that the build history of external-job is not visible on the page

          Jobs that are newly created in Jenkins 2.412 show the same behavior.  They receive the build results and they show the build results on the page correctly, but the build history is not visible.

          Mark Waite added a comment - - edited Thanks for reporting the issue.  I have duplicated the issue.  Steps that I took included: Create a plugins.txt file that includes the external job monitor plugin and the sshd plugin Create a run-jenkins.sh that downloads Jenkins 2.401.2 and the plugins listed in plugins.txt Run run-jenkins.sh and complete the setup wizard by creating a user mwaite with password mwaite and choosing to install no additional plugins Add my ssh public keys to the user mwaite account on Jenkins so that I can connect to Jenkins with ssh command line Enable Jenkins ssh server on port 8022 using the "Manage Jenkins" -> "Global Security" settings Create an external monitored job named external-job Add a few build results to the external monitored job with the command date | gzip | ssh -p 8022 testing-a.markwaite.net set-external-build-result --job external-job --result 0 --duration $RANDOM --log - Confirm that the build results are visible for the job named external-job Stop Jenkins Run the run-jenkins-2.412.sh script to download and start Jenkins 2.412 using the same directory as was used for the 2.401.2 installation Confirm that the build history of external-job is not visible on the page Jobs that are newly created in Jenkins 2.412 show the same behavior.  They receive the build results and they show the build results on the page correctly, but the build history is not visible.

          That's a regression introduced between 2.409 and 2.410

          Alexander Brandes added a comment - That's a regression introduced between 2.409 and 2.410

          Mark Waite added a comment - - edited

          Git bisect indicates that the issue was first introduced in commit 4693b251dc5bca6df1066085496fbfa9963ecfb8 as part of pull request 7932 to make widgets pluggable.

          vlatombe, would you be willing to investigate this one more deeply? I think that we want this issue resolved before the next LTS baseline is chosen. The next LTS baseline is scheduled to be selected by July 12, 2023.

          When I revert the pull request from a build based on Jenkins 2.412, the build history is again visible. The commands I used for that revert were:

          $ git checkout -b jenkins-2.412-without-pluggable-widgets jenkins-2.412
          $ git revert --no-edit -m 1 96620b0aa8
          $ git clean -xffd
          $ mvn -am -pl war,bom -Pquick-build clean install
          $ tar xf ../war-work.tar
          $ mvn -pl war -Dhost=0.0.0.0 jetty:run
          

          The username in that installation is mwaite with a password mwaite.

          Mark Waite added a comment - - edited Git bisect indicates that the issue was first introduced in commit 4693b251dc5bca6df1066085496fbfa9963ecfb8 as part of pull request 7932 to make widgets pluggable. vlatombe , would you be willing to investigate this one more deeply? I think that we want this issue resolved before the next LTS baseline is chosen. The next LTS baseline is scheduled to be selected by July 12, 2023. When I revert the pull request from a build based on Jenkins 2.412, the build history is again visible. The commands I used for that revert were: $ git checkout -b jenkins-2.412-without-pluggable-widgets jenkins-2.412 $ git revert --no-edit -m 1 96620b0aa8 $ git clean -xffd $ mvn -am -pl war,bom -Pquick-build clean install $ tar xf ../war-work.tar $ mvn -pl war -Dhost=0.0.0.0 jetty:run The username in that installation is mwaite with a password mwaite .

            vlatombe Vincent Latombe
            apismellifera Torsten
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: