• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • build-pipeline-plugin
    • None
    • Jenkins ver. 1.596.2
      Build Pipeline Plugin ver. 1.4.7
      Browser: latest Chrome

      When clicking on the console icon in a build pipeline no popup appears but instead in the JS console I get the following error message:

      Uncaught TypeError: jQuery.fancybox is not a function
      BuildPipeline.fillDialog @ build-pipeline.js:101
      onclick @ (index):116
      

      I can see the fancybox css and js in the header and I can even load these two files - so the webserver does serve these files. But they seem to be broken. When loading the css and js from another source, it works again.

      As a work-around I just put in some js that loads these two files in the description of the build pipeline..

          [JENKINS-28358] Console Window doesn't show

          Herr Phon added a comment -

          The version of jquery and fancybox do not work together. The new jenkins comes with jquery 1.11.2 which no longer supports this:

          Uncaught TypeError: Cannot read property 'msie' of undefined
          (anonymous function) @ jquery.fancybox-1.3.4.js?_=1431453685405:29
          (anonymous function) @ jquery.fancybox-1.3.4.js?_=1431453685405:1156
          

          Herr Phon added a comment - The version of jquery and fancybox do not work together. The new jenkins comes with jquery 1.11.2 which no longer supports this: Uncaught TypeError: Cannot read property 'msie' of undefined (anonymous function) @ jquery.fancybox-1.3.4.js?_=1431453685405:29 (anonymous function) @ jquery.fancybox-1.3.4.js?_=1431453685405:1156

          Herr Phon added a comment - - edited

          Quick fix - remove support for IE6 and replace
          $.browser.msie with false in jquery.fancybox and jquery.tooltip:

          diff --git a/plugins/build-pipeline-plugin/js/jquery.fancybox-1.3.4.js b/plugins/build-pipeline-plugin/js/jquery.fancybox-1.3.4.js
          index 55c08dd..bdf8ed9 100644
          --- a/plugins/build-pipeline-plugin/js/jquery.fancybox-1.3.4.js
          +++ b/plugins/build-pipeline-plugin/js/jquery.fancybox-1.3.4.js
          @@ -26,7 +26,7 @@
          
                          titleHeight = 0, titleStr = '', start_pos, final_pos, busy = false, fx = $.extend($('<div/>')[0], { prop: 0 }),
          
          -               isIE6 = $.browser.msie && $.browser.version < 7 && !window.XMLHttpRequest,
          +               isIE6 = false,^M
          
                          /*
                           * Private methods
          @@ -612,7 +612,7 @@
                                  }
          
                                  if (currentOpts.type == 'iframe') {
          -                               $('<iframe id="fancybox-frame" name="fancybox-frame' + new Date().getTime() + '" frameborder="0" hspace="0" ' + ($.browser.msie ? 'allowtransparency="true""' : '') + ' scrolling="
          +                               $('<iframe id="fancybox-frame" name="fancybox-frame' + new Date().getTime() + '" frameborder="0" hspace="0" ' + (false ? 'allowtransparency="true""' : '') + ' scrolling="' + selec
                                  }
          
                                  wrap.show();
          @@ -1155,4 +1155,4 @@
                          $.fancybox.init();
                  });
          
          -})(jQuery);
          \ No newline at end of file
          +})(jQuery);^M
          diff --git a/plugins/build-pipeline-plugin/js/jquery.tooltip.min.js b/plugins/build-pipeline-plugin/js/jquery.tooltip.min.js
          index a8d0cc6..576ae82 100644
          --- a/plugins/build-pipeline-plugin/js/jquery.tooltip.min.js
          +++ b/plugins/build-pipeline-plugin/js/jquery.tooltip.min.js
          @@ -11,9 +11,9 @@
            * Dual licensed under the MIT and GPL licenses:
            *   http://www.opensource.org/licenses/mit-license.php
            *   http://www.gnu.org/licenses/gpl.html
          - */;(function($){var helper={},current,title,tID,IE=$.browser.msie&&/MSIE\s(5\.5|6\.)/.test(navigator.userAgent),track=false;$.tooltip={blocked:false,defaults:{delay:200,fade:false,showURL:true,extraClass:"",to
          + */;(function($){var helper={},current,title,tID,IE=false&&/MSIE\s(5\.5|6\.)/.test(navigator.userAgent),track=false;$.tooltip={blocked:false,defaults:{delay:200,fade:false,showURL:true,extraClass:"",top:15,left
           show();track=!!settings(this).track;$(document.body).bind('mousemove',update);update(event);}function save(){if($.tooltip.blocked||this==current||(!this.tooltipText&&!settings(this).bodyHandler))return;current=
           helper.url.hide();helper.parent.addClass(settings(this).extraClass);if(settings(this).fixPNG)helper.parent.fixPNG();handle.apply(this,arguments);}function show(){tID=null;if((!IE||!$.fn.bgiframe)&&settings(curr
           helper.parent.is(':visible')?helper.parent.fadeTo(settings(current).fade,current.tOpacity):helper.parent.fadeIn(settings(current).fade);}else{helper.parent.show();}update();}function update(event){if($.tooltip.
           helper.parent.stop().fadeOut(tsettings.fade,complete);}else
          -complete();if(settings(this).fixPNG)helper.parent.unfixPNG();}})(jQuery);
          \ No newline at end of file
          +complete();if(settings(this).fixPNG)helper.parent.unfixPNG();}})(jQuery);
          

          Herr Phon added a comment - - edited Quick fix - remove support for IE6 and replace $.browser.msie with false in jquery.fancybox and jquery.tooltip : diff --git a/plugins/build-pipeline-plugin/js/jquery.fancybox-1.3.4.js b/plugins/build-pipeline-plugin/js/jquery.fancybox-1.3.4.js index 55c08dd..bdf8ed9 100644 --- a/plugins/build-pipeline-plugin/js/jquery.fancybox-1.3.4.js +++ b/plugins/build-pipeline-plugin/js/jquery.fancybox-1.3.4.js @@ -26,7 +26,7 @@ titleHeight = 0, titleStr = '', start_pos, final_pos, busy = false , fx = $.extend($(' <div/>')[0], { prop: 0 }), - isIE6 = $.browser.msie && $.browser.version < 7 && !window.XMLHttpRequest, + isIE6 = false ,^M /* * Private methods @@ -612,7 +612,7 @@ } if (currentOpts.type == 'iframe' ) { - $( '<iframe id= "fancybox-frame" name= "fancybox-frame' + new Date().getTime() + '" frameborder= "0" hspace= "0" ' + ($.browser.msie ? 'allowtransparency= " true " "' : '') + ' scrolling=" + $( '<iframe id= "fancybox-frame" name= "fancybox-frame' + new Date().getTime() + '" frameborder= "0" hspace= "0" ' + ( false ? 'allowtransparency= " true " "' : '') + ' scrolling=" ' + selec } wrap.show(); @@ -1155,4 +1155,4 @@ $.fancybox.init(); }); -})(jQuery); \ No newline at end of file +})(jQuery);^M diff --git a/plugins/build-pipeline-plugin/js/jquery.tooltip.min.js b/plugins/build-pipeline-plugin/js/jquery.tooltip.min.js index a8d0cc6..576ae82 100644 --- a/plugins/build-pipeline-plugin/js/jquery.tooltip.min.js +++ b/plugins/build-pipeline-plugin/js/jquery.tooltip.min.js @@ -11,9 +11,9 @@ * Dual licensed under the MIT and GPL licenses: * http: //www.opensource.org/licenses/mit-license.php * http: //www.gnu.org/licenses/gpl.html - */;(function($){ var helper={},current,title,tID,IE=$.browser.msie&&/MSIE\s(5\.5|6\.)/.test(navigator.userAgent),track= false ;$.tooltip={blocked: false ,defaults:{delay:200,fade: false ,showURL: true ,extraClass:"",to + */;(function($){ var helper={},current,title,tID,IE= false &&/MSIE\s(5\.5|6\.)/.test(navigator.userAgent),track= false ;$.tooltip={blocked: false ,defaults:{delay:200,fade: false ,showURL: true ,extraClass:"",top:15,left show();track=!!settings( this ).track;$(document.body).bind( 'mousemove' ,update);update(event);}function save(){ if ($.tooltip.blocked|| this ==current||(! this .tooltipText&&!settings( this ).bodyHandler)) return ;current= helper.url.hide();helper.parent.addClass(settings( this ).extraClass); if (settings( this ).fixPNG)helper.parent.fixPNG();handle.apply( this ,arguments);}function show(){tID= null ; if ((!IE||!$.fn.bgiframe)&&settings(curr helper.parent.is( ':visible' )?helper.parent.fadeTo(settings(current).fade,current.tOpacity):helper.parent.fadeIn(settings(current).fade);} else {helper.parent.show();}update();}function update(event){ if ($.tooltip. helper.parent.stop().fadeOut(tsettings.fade,complete);} else -complete(); if (settings( this ).fixPNG)helper.parent.unfixPNG();}})(jQuery); \ No newline at end of file +complete(); if (settings( this ).fixPNG)helper.parent.unfixPNG();}})(jQuery);

          Benoit Donneaux added a comment - - edited

          We've got something pretty close to this issue, but not only related to the console as it also impacts the "Run" action (and browser is IceWeasel 31.6.0).

          Jenkins: 1.611
          Pipeline plugin: 1.4.7
          JQuery plugin: 1.11.2-0

          Rollback to JQuery plugin 1.7.2-1 apparently works around for us...

          Benoit Donneaux added a comment - - edited We've got something pretty close to this issue, but not only related to the console as it also impacts the "Run" action (and browser is IceWeasel 31.6.0). Jenkins: 1.611 Pipeline plugin: 1.4.7 JQuery plugin: 1.11.2-0 Rollback to JQuery plugin 1.7.2-1 apparently works around for us...

          Johnny Chuang added a comment -

          I got the same problem and error message on jQuery Plugin 1.11.2.
          I use Chrome 43.0.2357.81m

          Johnny Chuang added a comment - I got the same problem and error message on jQuery Plugin 1.11.2. I use Chrome 43.0.2357.81m

          I got the same problem when I try to start a pipeline build

          Uncaught TypeError: Cannot read property 'msie' of undefined
          Uncaught TypeError: jQuery.fancybox is not a function

          Jenkins version: 1.596.3
          Build-Pipeline plugin: 1.4.7
          JQuery plugin: 1.11.2-0
          Browser: Chrome 43.0.2357.124 (64-bit) OSX

          Christian Lipphardt added a comment - I got the same problem when I try to start a pipeline build Uncaught TypeError: Cannot read property 'msie' of undefined Uncaught TypeError: jQuery.fancybox is not a function Jenkins version: 1.596.3 Build-Pipeline plugin: 1.4.7 JQuery plugin: 1.11.2-0 Browser: Chrome 43.0.2357.124 (64-bit) OSX

          Roman Blachman added a comment - - edited

          Please fix this...

          Uncaught TypeError: Cannot read property 'msie' of undefined
          (anonymous function) @ jquery.fancybox-1.3.4.js:29
          (anonymous function) @ jquery.fancybox-1.3.4.js:1158
          
          Uncaught TypeError: Cannot read property 'msie' of undefined
          (anonymous function) @ jquery.tooltip.min.js:14
          (anonymous function) @ jquery.tooltip.min.js:19
          

          Roman Blachman added a comment - - edited Please fix this... Uncaught TypeError: Cannot read property 'msie' of undefined (anonymous function) @ jquery.fancybox-1.3.4.js:29 (anonymous function) @ jquery.fancybox-1.3.4.js:1158 Uncaught TypeError: Cannot read property 'msie' of undefined (anonymous function) @ jquery.tooltip.min.js:14 (anonymous function) @ jquery.tooltip.min.js:19

          Hongkai Liu added a comment -

          We have a similar issue: console does not show (run button is fine although).

          Jenkins version: 1.596.2
          Build-Pipeline plugin: 1.4.5 / 1.4.7
          JQuery plugin: 1.7.2-1

          The cause is extended-choice-parameter plugin. It seems there is some jQuery-loading-conflict issue.
          With v0.52, the console does not show. Downgrading to v0.26 solves the problem.

          Hongkai Liu added a comment - We have a similar issue: console does not show (run button is fine although). Jenkins version: 1.596.2 Build-Pipeline plugin: 1.4.5 / 1.4.7 JQuery plugin: 1.7.2-1 The cause is extended-choice-parameter plugin. It seems there is some jQuery-loading-conflict issue. With v0.52, the console does not show. Downgrading to v0.26 solves the problem.

            Unassigned Unassigned
            herrphon Herr Phon
            Votes:
            10 Vote for this issue
            Watchers:
            17 Start watching this issue

              Created:
              Updated: