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

Link to the console output missing in popup when log >200Kb

      When looking into the popup in the breadcrumb of the lastBuild of a particular job, there is a link to the console of the last build (GOOD). See for example, the popup of the breadcrumb in https://buildhive.cloudbees.com/job/cgeo/job/c-geo-opensource/lastBuild/

      And there is also a link to the lastBuild console in the popup of the lastBuild permalink in this job page (GOOD).
      See for example, the "good.png" attached screenshot.

      But in some other job (log file larger than 200000 probably), there is no link to the console of the last build in the breadcrumb of the lastBuild page (BAD).
      See for example, the popup of the breadcrumb in https://buildhive.cloudbees.com/job/Atmosphere/job/atmosphere/lastBuild/

      And in the job page of the same job, there is no link to the lastBuild console in the popup of the lastBuild permalink in the same job page (BAD).
      See for exampe, the "BAD.png" attached screenshot.

        1. BAD.png
          BAD.png
          90 kB
        2. good.png
          good.png
          85 kB

          [JENKINS-14264] Link to the console output missing in popup when log >200Kb

          evernat created issue -
          evernat made changes -
          Description Original: When looking into the popup in the breadcrumb of the lastBuild of a freestyle job (with ant), there is a link to the console of the last build (GOOD). See for example, the popup of the breadcrumb in https://buildhive.cloudbees.com/job/cgeo/job/c-geo-opensource/lastBuild/

          And there is also a link to the lastBuild console in the popup of the lastBuild permalink in this job page (GOOD).
          See for example, the first attached screenshot.


          But when using a maven job, there is no link to the console of the last build in the breadcrumb of the lastBuild page (BAD).
          See for example, the popup of the breadcrumb in https://buildhive.cloudbees.com/job/Atmosphere/job/atmosphere/lastBuild/

          And in the job page of the same maven job, there is no link to the lastBuild console in the popup of the lastBuild permalink in the same job page (BAD).
          See for exampe, the second attached screenshot.
          New: When looking into the popup in the breadcrumb of the lastBuild of a freestyle job, there is a link to the console of the last build (GOOD). See for example, the popup of the breadcrumb in https://buildhive.cloudbees.com/job/cgeo/job/c-geo-opensource/lastBuild/

          And there is also a link to the lastBuild console in the popup of the lastBuild permalink in this job page (GOOD).
          See for example, the first attached screenshot.


          But when using a maven job, there is no link to the console of the last build in the breadcrumb of the lastBuild page (BAD).
          See for example, the popup of the breadcrumb in https://buildhive.cloudbees.com/job/Atmosphere/job/atmosphere/lastBuild/

          And in the job page of the same maven job, there is no link to the lastBuild console in the popup of the lastBuild permalink in the same job page (BAD).
          See for exampe, the second attached screenshot.
          evernat made changes -
          Description Original: When looking into the popup in the breadcrumb of the lastBuild of a freestyle job, there is a link to the console of the last build (GOOD). See for example, the popup of the breadcrumb in https://buildhive.cloudbees.com/job/cgeo/job/c-geo-opensource/lastBuild/

          And there is also a link to the lastBuild console in the popup of the lastBuild permalink in this job page (GOOD).
          See for example, the first attached screenshot.


          But when using a maven job, there is no link to the console of the last build in the breadcrumb of the lastBuild page (BAD).
          See for example, the popup of the breadcrumb in https://buildhive.cloudbees.com/job/Atmosphere/job/atmosphere/lastBuild/

          And in the job page of the same maven job, there is no link to the lastBuild console in the popup of the lastBuild permalink in the same job page (BAD).
          See for exampe, the second attached screenshot.
          New: When looking into the popup in the breadcrumb of the lastBuild of a freestyle job, there is a link to the console of the last build (GOOD). See for example, the popup of the breadcrumb in https://buildhive.cloudbees.com/job/cgeo/job/c-geo-opensource/lastBuild/

          And there is also a link to the lastBuild console in the popup of the lastBuild permalink in this job page (GOOD).
          See for example, the "good.png" attached screenshot.


          But when using a maven job, there is no link to the console of the last build in the breadcrumb of the lastBuild page (BAD).
          See for example, the popup of the breadcrumb in https://buildhive.cloudbees.com/job/Atmosphere/job/atmosphere/lastBuild/

          And in the job page of the same maven job, there is no link to the lastBuild console in the popup of the lastBuild permalink in the same job page (BAD).
          See for exampe, the "BAD.png" attached screenshot.

          evernat added a comment - - edited

          After more tests, this does not depend on the types of jobs (freestyle or maven).
          But it depends on the fact that there is "Console Ouput" or "Console Output [raw]" in the actions on the left.

          And so, it seems to be because "Console Output [raw]" is rendered directly in tasks.jelly when the log file is larger than 200000, whereas "Console Output" is rendered by <l:task>.

          See https://github.com/jenkinsci/jenkins/blob/master/core/src/main/resources/hudson/model/AbstractBuild/tasks.jelly#L34

          evernat added a comment - - edited After more tests, this does not depend on the types of jobs (freestyle or maven). But it depends on the fact that there is "Console Ouput" or "Console Output [raw] " in the actions on the left. And so, it seems to be because "Console Output [raw] " is rendered directly in tasks.jelly when the log file is larger than 200000, whereas "Console Output" is rendered by <l:task>. See https://github.com/jenkinsci/jenkins/blob/master/core/src/main/resources/hudson/model/AbstractBuild/tasks.jelly#L34
          evernat made changes -
          Description Original: When looking into the popup in the breadcrumb of the lastBuild of a freestyle job, there is a link to the console of the last build (GOOD). See for example, the popup of the breadcrumb in https://buildhive.cloudbees.com/job/cgeo/job/c-geo-opensource/lastBuild/

          And there is also a link to the lastBuild console in the popup of the lastBuild permalink in this job page (GOOD).
          See for example, the "good.png" attached screenshot.


          But when using a maven job, there is no link to the console of the last build in the breadcrumb of the lastBuild page (BAD).
          See for example, the popup of the breadcrumb in https://buildhive.cloudbees.com/job/Atmosphere/job/atmosphere/lastBuild/

          And in the job page of the same maven job, there is no link to the lastBuild console in the popup of the lastBuild permalink in the same job page (BAD).
          See for exampe, the "BAD.png" attached screenshot.
          New: When looking into the popup in the breadcrumb of the lastBuild of a particular job, there is a link to the console of the last build (GOOD). See for example, the popup of the breadcrumb in https://buildhive.cloudbees.com/job/cgeo/job/c-geo-opensource/lastBuild/

          And there is also a link to the lastBuild console in the popup of the lastBuild permalink in this job page (GOOD).
          See for example, the "good.png" attached screenshot.


          But in some other job (log file larger than 200000 probably), there is no link to the console of the last build in the breadcrumb of the lastBuild page (BAD).
          See for example, the popup of the breadcrumb in https://buildhive.cloudbees.com/job/Atmosphere/job/atmosphere/lastBuild/

          And in the job page of the same job, there is no link to the lastBuild console in the popup of the lastBuild permalink in the same job page (BAD).
          See for exampe, the "BAD.png" attached screenshot.
          Summary Original: Breadcrumb: the link to the lastBuild console is missing in the popup for a maven job New: Breadcrumb: the link to the lastBuild console is missing in the popup for a some jobs

          mike bayer added a comment - - edited

          this issue has driven me completely mad for months, and I just identified tonight that it is in fact two different "classes" of console output, based on the size of the log, and then from that "class" you get two entirely different UX treatments - the presence or lack of a "breadcrumb" link to the console output (why is the contextual popup called a "breadcrumb?" not really a breadcrumb...), as well as either "console output ... view as plain text" on the left for small logs or "console output [raw]" for large logs when you view the build itself.

          evernat seems to have identified this size as 200K, sounds about right - why isn't this hardcoded number configurable or documented anywhere ? why two entirely different sets of logic kicking in? why can't jenkins pay for all the psychiatric meds this issue has caused me? so many questions.... thanks for listening.

          mike bayer added a comment - - edited this issue has driven me completely mad for months, and I just identified tonight that it is in fact two different "classes" of console output, based on the size of the log, and then from that "class" you get two entirely different UX treatments - the presence or lack of a "breadcrumb" link to the console output (why is the contextual popup called a "breadcrumb?" not really a breadcrumb...), as well as either "console output ... view as plain text" on the left for small logs or "console output [raw] " for large logs when you view the build itself. evernat seems to have identified this size as 200K, sounds about right - why isn't this hardcoded number configurable or documented anywhere ? why two entirely different sets of logic kicking in? why can't jenkins pay for all the psychiatric meds this issue has caused me? so many questions.... thanks for listening.
          mike bayer made changes -
          Labels Original: breadcrumb New: breadcrumb consoleoutput context
          evernat made changes -
          Summary Original: Breadcrumb: the link to the lastBuild console is missing in the popup for a some jobs New: Breadcrumb: the link to the lastBuild console is missing in the popup for some jobs

          evernat added a comment -

          @mike bayer
          > why is the contextual popup called a "breadcrumb?"
          I mean the contextual popup/menu of the breadcrumb and also of the permalinks like lastBuild

          For your psychiatric meds: sorry, jenkins can't pay you back. But if you go to some jenkins conference, a jenkins sticker can certainly be offered.

          evernat added a comment - @mike bayer > why is the contextual popup called a "breadcrumb?" I mean the contextual popup/menu of the breadcrumb and also of the permalinks like lastBuild For your psychiatric meds: sorry, jenkins can't pay you back. But if you go to some jenkins conference, a jenkins sticker can certainly be offered.
          evernat made changes -
          Link New: This issue is duplicated by JENKINS-15786 [ JENKINS-15786 ]

            jglick Jesse Glick
            evernat evernat
            Votes:
            6 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: