Please sign in to comment.
[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.
- Loading branch information
Showing with 41 additions and 88 deletions.
- +0 −80 src/main/java/hudson/plugins/timestamper/annotator/TimestampAnnotatorFactory2.java
- +5 −0 ...notator.js → resources/hudson/plugins/timestamper/annotator/TimestampAnnotatorFactory2/script.js}
- +36 −0 src/main/resources/hudson/plugins/timestamper/annotator/TimestampAnnotatorFactory2/style.css
- +0 −8 src/main/webapp/style.css
|@@ -0,0 +1,36 @@|
|* The MIT License|
|* Copyright (c) 2016 Steven G. Brown|
|* Permission is hereby granted, free of charge, to any person obtaining a copy|
|* of this software and associated documentation files (the "Software"), to deal|
|* in the Software without restriction, including without limitation the rights|
|* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell|
|* copies of the Software, and to permit persons to whom the Software is|
|* furnished to do so, subject to the following conditions:|
|* The above copyright notice and this permission notice shall be included in|
|* all copies or substantial portions of the Software.|
|* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR|
|* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,|
|* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE|
|* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER|
|* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,|
|* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN|
|* THE SOFTWARE.|
|When changing this file, also rename the TimestampAnnotatorFactory class so|
|that the changes take effect when upgrading the Timestamper plugin.|
|/* Override style changes made by the AnsiColor plugin. */|
Oops, something went wrong.