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

Timestamps switcher not available in chromium

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Component/s: timestamper-plugin
    • Labels:
      None
    • Environment:
      Jenkins 1.628
      Timestamper 1.7.2
      Browser Chromium 45.0.2454.101 Ubuntu 14.04
    • Similar Issues:

      Description

      No timestamp mode switcher (System clock time, Elapsed time, None) when open in chromium. But switcher exists when open the same page in Firefox.

        Attachments

          Issue Links

            Activity

            Hide
            stevengbrown Steven G Brown added a comment -

            I wasn't able to reproduce this with Debian Jessie and the same versions of Jenkins, Timestamper and Chrome. Can you see what appears in the Javascript Console when the page loads?

            Show
            stevengbrown Steven G Brown added a comment - I wasn't able to reproduce this with Debian Jessie and the same versions of Jenkins, Timestamper and Chrome. Can you see what appears in the Javascript Console when the page loads?
            Hide
            vok1980 Vyacheslav Koshcheyev added a comment - - edited

            I'v added the screenshot (Screenshot from 2016-01-14_10_58_35.png) of javascript execution.

            Show
            vok1980 Vyacheslav Koshcheyev added a comment - - edited I'v added the screenshot ( Screenshot from 2016-01-14_10_58_35.png ) of javascript execution.
            Hide
            stevengbrown Steven G Brown added a comment - - edited

            It seems your browser has an out-of-date script, from an older version of Timestamper. Can you try opening the script in your browser (link below) and refreshing it with Ctrl+F5?
            http://jenkins-mobile-master.2gis.local:8080/extensionList/hudson.console.ConsoleAnnotatorFactory/hudson.plugins.timestamper.annotator.TimestampAnnotatorFactory/script.js

            It should look like this:
            https://github.com/jenkinsci/timestamper-plugin/blob/timestamper-1.7.2/src/main/resources/hudson/plugins/timestamper/annotator/TimestampAnnotatorFactory/script.js

                // Jenkins 1.608 displays the side panel widgets in 'side-panel-content'
                var element = document.getElementById('side-panel-content');
                if (null == element) {
                    // Jenkins 1.619 has no 'side-panel-content', it displays the widgets in 'side-panel' 
                    element = document.getElementById('side-panel');
                    if (null == element) {
                        // element not found, so return to avoid an error (JENKINS-23867)
                        return;
                    }
                }
            
            Show
            stevengbrown Steven G Brown added a comment - - edited It seems your browser has an out-of-date script, from an older version of Timestamper. Can you try opening the script in your browser (link below) and refreshing it with Ctrl+F5? http://jenkins-mobile-master.2gis.local:8080/extensionList/hudson.console.ConsoleAnnotatorFactory/hudson.plugins.timestamper.annotator.TimestampAnnotatorFactory/script.js It should look like this: https://github.com/jenkinsci/timestamper-plugin/blob/timestamper-1.7.2/src/main/resources/hudson/plugins/timestamper/annotator/TimestampAnnotatorFactory/script.js // Jenkins 1.608 displays the side panel widgets in 'side-panel-content' var element = document.getElementById( 'side-panel-content' ); if ( null == element) { // Jenkins 1.619 has no 'side-panel-content' , it displays the widgets in 'side-panel' element = document.getElementById( 'side-panel' ); if ( null == element) { // element not found, so return to avoid an error (JENKINS-23867) return ; } }
            Hide
            vok1980 Vyacheslav Koshcheyev added a comment -

            Thanks! Now it works.

            Show
            vok1980 Vyacheslav Koshcheyev added a comment - Thanks! Now it works.
            Hide
            stevengbrown Steven G Brown added a comment -

            Great. You're welcome.

            Show
            stevengbrown Steven G Brown added a comment - Great. You're welcome.

              People

              • Assignee:
                stevengbrown Steven G Brown
                Reporter:
                vok1980 Vyacheslav Koshcheyev
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: