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

Timestamps switcher not available in chromium

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Done
    • timestamper-plugin
    • None
    • Jenkins 1.628
      Timestamper 1.7.2
      Browser Chromium 45.0.2454.101 Ubuntu 14.04

    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

            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?

            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?
            vok1980 Vyacheslav Koshcheyev added a comment - - edited

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

            vok1980 Vyacheslav Koshcheyev added a comment - - edited I'v added the screenshot ( Screenshot from 2016-01-14_10_58_35.png ) of javascript execution.
            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;
                    }
                }
            
            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 ; } }

            Thanks! Now it works.

            vok1980 Vyacheslav Koshcheyev added a comment - Thanks! Now it works.

            Great. You're welcome.

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

            People

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

              Dates

                Created:
                Updated:
                Resolved: