[JIRA] (JENKINS-38085) Settings not appearing in the sidebar

2016-10-04 Thread stevengbr...@java.net (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Steven G Brown edited a comment on  JENKINS-38085  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Settings not appearing in the sidebar   
 

  
 
 
 
 

 
 Jenkins serves the script with this URL:{noformat}https://my.jenkins.host/extensionList/hudson.console.ConsoleAnnotatorFactory/hudson.plugins.timestamper.annotator.TimestampAnnotatorFactory2/script.js{noformat}and it expires after a day. This is a problem for plugins because the script from the previous version might still be cached.The only way this URL can be changed within the plugin is to rename the {{TimestampAnnotatorFactory2}} class to something else. That's what I plan to do the next time the script changes.Other options:* Redirect to another URL using a relative path. This is what Timestamper 1.8.5 does, and the new URL includes the plugin version so that upgrading or downgrading the plugin causes the script to be re-downloaded. Now we know that it doesn't work on your system.* Redirect to another URL using an absolute path. However, if using a reverse proxy, it must be configured properly or the settings will not appear. (See [Jenkins.getRootUrlFromRequest|http://javadoc.jenkins-ci.org/jenkins/model/Jenkins.html#getRootUrlFromRequest()].) I'd rather pick another option that is not sensitive to how the proxy is configured.* Turn off the caching altogether by overridding [ConsoleAnnotatorFactory.doScriptJs|http://javadoc.jenkins-ci.org/hudson/console/ConsoleAnnotatorFactory.html#doScriptJs(org.kohsuke.stapler.StaplerRequest, org.kohsuke.stapler.StaplerResponse)]. I considered this, but it seems unfortunate to have the script downloaded every time.Ultimately, the best solution would be to have Jenkins include the plugin version or a timestamp in the URL.  I've raised JENKINS-38719 to do this.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  

[JIRA] (JENKINS-38085) Settings not appearing in the sidebar

2016-10-02 Thread stevengbr...@java.net (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Steven G Brown commented on  JENKINS-38085  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Settings not appearing in the sidebar   
 

  
 
 
 
 

 
 
 
Confirmed, although it appears the timestamps now render in inverted colors (black text on white), which is distracting to the eye.
 This has been raised as JENKINS-38573.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-38085) Settings not appearing in the sidebar

2016-09-27 Thread danki...@comcast.net (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Daniel Kirkdorffer commented on  JENKINS-38085  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Settings not appearing in the sidebar   
 

  
 
 
 
 

 
 Confirmed, although it appears the timestamps now render in inverted colors (black text on white), which is distracting to the eye.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-38085) Settings not appearing in the sidebar

2016-09-18 Thread stevengbr...@java.net (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Steven G Brown resolved as Fixed  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Fix released with Timestamper 1.8.6.  
 

  
 
 
 
 

 
 Jenkins /  JENKINS-38085  
 
 
  Settings not appearing in the sidebar   
 

  
 
 
 
 

 
Change By: 
 Steven G Brown  
 
 
Status: 
 Open Resolved  
 
 
Resolution: 
 Fixed  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-38085) Settings not appearing in the sidebar

2016-09-18 Thread stevengbr...@java.net (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Steven G Brown commented on  JENKINS-38085  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Settings not appearing in the sidebar   
 

  
 
 
 
 

 
 Jenkins serves the script with this URL: 

 
https://my.jenkins.host/extensionList/hudson.console.ConsoleAnnotatorFactory/hudson.plugins.timestamper.annotator.TimestampAnnotatorFactory2/script.js
 

 and it expires after a day. This is a problem for plugins because the script from the previous version might still be cached. The only way this URL can be changed within the plugin is to rename the TimestampAnnotatorFactory2 class to something else. That's what I plan to do the next time the script changes. Other options: 
 
Redirect to another URL using a relative path. This is what Timestamper 1.8.5 does, and the new URL includes the plugin version so that upgrading or downgrading the plugin causes the script to be re-downloaded. Now we know that it doesn't work on your system. 
 
 
Redirect to another URL using an absolute path. However, if using a reverse proxy, it must be configured properly or the settings will not appear. (See Jenkins.getRootUrlFromRequest.) I'd rather pick another option that is not sensitive to how the proxy is configured. 
 
 
Turn off the caching altogether by overridding ConsoleAnnotatorFactory.doScriptJs. I considered this, but it seems unfortunate to have the script downloaded every time. 
 Ultimately, the best solution would be to have Jenkins include the plugin version or a timestamp in the URL.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 
  

[JIRA] (JENKINS-38085) Settings not appearing in the sidebar

2016-09-14 Thread danki...@comcast.net (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Daniel Kirkdorffer edited a comment on  JENKINS-38085  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Settings not appearing in the sidebar   
 

  
 
 
 
 

 
 I'm not sure I understand the issue here, and why TimestampAnnotatorFactory has to be renamed.  Why can't you add a "?t=" to your _javascript_ reference instead to ensure it is recognized as changed, or something similar?  Or, why can't the reference you had to annotator.js include  ```  {{ req.getScheme() ``` }}  so that HTTPS is used?  Just throwing out ideas without understanding the problem completely.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-38085) Settings not appearing in the sidebar

2016-09-14 Thread danki...@comcast.net (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Daniel Kirkdorffer commented on  JENKINS-38085  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Settings not appearing in the sidebar   
 

  
 
 
 
 

 
 I'm not sure I understand the issue here, and why TimestampAnnotatorFactory has to be renamed. Why can't you add a "?t=" to your _javascript_ reference instead to ensure it is recognized as changed, or something similar? Or, why can't the reference you had to annotator.js include ```req.getScheme()``` so that HTTPS is used? Just throwing out ideas without understanding the problem completely.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-38085) Settings not appearing in the sidebar

2016-09-14 Thread scm_issue_l...@java.net (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 SCM/JIRA link daemon commented on  JENKINS-38085  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Settings not appearing in the sidebar   
 

  
 
 
 
 

 
 Code changed in jenkins User: Steven Brown Path: src/main/java/hudson/plugins/timestamper/annotator/TimestampAnnotatorFactory2.java src/main/resources/hudson/plugins/timestamper/annotator/TimestampAnnotatorFactory2/script.js src/main/resources/hudson/plugins/timestamper/annotator/TimestampAnnotatorFactory2/style.css src/main/webapp/annotator.js src/main/webapp/style.css http://jenkins-ci.org/commit/timestamper-plugin/bb7e2ce76a86127ffa3de95a4aec9d6419a38412 Log: JENKINS-38085 Revert to default way of loading the script and CSS A custom approach was previously used to load the script and CSS for displaying the timestamps. It caused the script and CSS to be reloaded when the Timestamper plugin is upgraded or downgraded, rather than being cached for the next day. It seems this doesn't work for everyone (JENKINS-38085), so I'm reverting back to the default behaviour. Note that it is known to work with HTTPS and through a HTTPS proxy (JENKINS-35315) at least for some users. As a result, the TimestampAnnotatorFactory class will have to be manually renamed each time the script or CSS is changed in a new release.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-38085) Settings not appearing in the sidebar

2016-09-13 Thread danki...@comcast.net (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Daniel Kirkdorffer assigned an issue to Steven G Brown  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-38085  
 
 
  Settings not appearing in the sidebar   
 

  
 
 
 
 

 
Change By: 
 Daniel Kirkdorffer  
 
 
Assignee: 
 Daniel Kirkdorffer Steven G Brown  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-38085) Settings not appearing in the sidebar

2016-09-09 Thread danki...@comcast.net (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Daniel Kirkdorffer commented on  JENKINS-38085  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Settings not appearing in the sidebar   
 

  
 
 
 
 

 
 
 
Which version of Jenkins are you running? 1.658 
Any stack trace in the Jenkins log? No 
Any message in the _javascript_ console in the browser? 09:48:32.511 Blocked loading mixed active content "http://www.blablablah.com:8080/static/1.8.5/plugin/timestamper/annotator.js" 
Are you running another plugin which alters the sidebar or changes the look of Jenkins? Not that I know of. Nothing changed on that front. 
 So it seems like it might be due to trying to access the annotator.js script via HTTP instead of HTTPS?  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-38085) Settings not appearing in the sidebar

2016-09-08 Thread stevengbr...@java.net (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Steven G Brown commented on  JENKINS-38085  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Settings not appearing in the sidebar   
 

  
 
 
 
 

 
 I am still able to see it with Jenkins 2.21 and Timestamper 1.8.5. Can you provide a little more information? 
 
Which version of Jenkins are you running? 
Any stack trace in the Jenkins log? 
Any message in the _javascript_ console in the browser? 
Are you running another plugin which alters the sidebar or changes the look of Jenkins? 
  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-38085) Settings not appearing in the sidebar

2016-09-08 Thread stevengbr...@java.net (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Steven G Brown created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-38085  
 
 
  Settings not appearing in the sidebar   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Assignee: 
 Daniel Kirkdorffer  
 
 
Components: 
 timestamper-plugin  
 
 
Created: 
 2016/Sep/09 1:21 AM  
 
 
Priority: 
  Major  
 
 
Reporter: 
 Steven G Brown  
 

  
 
 
 
 

 
 Reported by Daniel Kirkdorffer: 
 
Has the ability to switch between System clock time, Elapsed time and None been removed from the sidebar? I don't see it now that I've updated from 1.7.2 to the latest version 1.8.5.
  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment