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 created issue -

          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
          Alexander Brandes made changes -
          Component/s New: external-monitor-job-plugin [ 17123 ]
          Component/s Original: core [ 15593 ]
          Mark Waite made changes -
          Attachment New: plugins.txt [ 60695 ]
          Mark Waite made changes -
          Attachment New: run-jenkins.sh [ 60696 ]
          Mark Waite made changes -
          Attachment New: run-jenkins-2.412.sh [ 60697 ]

          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.
          Mark Waite made changes -
          Labels New: regression
          Mark Waite made changes -
          Component/s New: core [ 15593 ]
          Mark Waite made changes -
          Summary Original: Build History missing in External Job view New: Build History missing in External Job view of Jenkins 2.412

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

              Created:
              Updated:
              Resolved: