* Remove usages of StringUtils#containsIgnoreCase
Signed-off-by: Bob Du <i@bobdu.cc>
* Remove usages of StringUtils#removeStart StringUtils#removeEnd
Signed-off-by: Bob Du <i@bobdu.cc>
* Remove usages of StringUtils#defaultString
Signed-off-by: Bob Du <i@bobdu.cc>
* Remove usages of StringUtils#defaultIfBlank
Signed-off-by: Bob Du <i@bobdu.cc>
* Remove usages of StringUtils#isAlphanumeric
Signed-off-by: Bob Du <i@bobdu.cc>
* Remove usages of StringUtils.EMPTY
Signed-off-by: Bob Du <i@bobdu.cc>
* Remove usages of StringUtils#split
Signed-off-by: Bob Du <i@bobdu.cc>
* Remove usages of StringUtils#startsWithIgnoreCase
Signed-off-by: Bob Du <i@bobdu.cc>
* Remove usages of StringUtils#countMatches
Signed-off-by: Bob Du <i@bobdu.cc>
* Remove usages of StringUtils#endsWithAny
Signed-off-by: Bob Du <i@bobdu.cc>
* fix spotbugs warning
Signed-off-by: Bob Du <i@bobdu.cc>
* Use Objects.toString
Signed-off-by: Bob Du <i@bobdu.cc>
* revert unrelated change
Signed-off-by: Bob Du <i@bobdu.cc>
---------
Signed-off-by: Bob Du <i@bobdu.cc>
* [JENKINS-60866] Apply Stapler update for CSP-compliant st:bind
* [JENKINS-60866] Make renderOnDemand CSP-compliant
* Thanks Spotless
* Make Stapler incrementals work
* Update Stapler to new incremental
* Fixup bad merge
* Update Stapler, add test demonstrating st:bind working
* Address review feedback
* Add test for null bind, update Stapler
* Checkstyle
* More tests
* Use released Stapler
---------
Co-authored-by: Daniel Beck <daniel-beck@users.noreply.github.com>
Co-authored-by: Basil Crow <me@basilcrow.com>
* [JENKINS-71965] fix timezone in build history
the timezone shown was always the daylight saving time when the users
selected timezone has daylight saving. The change will now consider the
actual timestamp of the build to determine if it was in daylight saving
time to properly calculate the timezone to show.
* make locale aware
* [JENKINS-71715] Allow plugins with alternate build log visualizations to handle console links from core and other plugins
* [JENKINS-71715] Apply suggestions with ordinal extension and @since TODO
* [JENKINS-71715] Public @Extension
* Add or fix @since todo
we usually don't put versions but put todo instead and these versions get resolved _after_ merges.
Co-authored-by: Daniel Beck <1831569+daniel-beck@users.noreply.github.com>
* [JENKINS-71715] Apply suggestions from reviews
* [JENKINS-71715] Switch ConsoleURLProvider to interface and add Functions.getContextRelativeUrl
* [JENKINS-71715] Refactor ConsoleUrlProvider API and add Functions.getConsoleUrl method for use in Jelly files
* [JENKINS-71715] Fix casing of ConsoleURLProvider.java
* [JENKINS-71715] Add global and per-user configuration options for ConsoleUrlProvider
* [JENKINS-71715] Fix Javadoc reference
* [JENKINS-71715] Remove outdated TODO comment
* [JENKINS-71715] Miscellaneous updates based on review feedback
* [JENKINS-71715] Fix Javadoc links
* [JENKINS-71715] Update console links for build list and build time trend widgets
* [JENKINS-71715] Functions.getConsoleUrl must take Queue.Executable instead of Run
* [JENKINS-71715] Simplify test using WebClient.executeOnServer
* [JENKINS-71715] Add constructor
* [JENKINS-71715] Preserve old behavior of p:console-link as a fallback for atypical consumers
* [JENKINS-71715] Ignore invalid URLs and consult global providers if user providers fail to provide a valid URL
* [JENKINS-71715] Move ConsoleUrlProviderGlobalConfiguration into AppearanceCategory
* [JENKINS-71715] Hide AppearanceGlobalConfiguration if ConsoleUrlProviderGlobalConfiguration is disabled and would be the only option on the page
* [JENKINS-71715] Update help text and Javadoc based on review feedback, and filter out default provider in global config
Co-authored-by: Daniel Beck <daniel-beck@users.noreply.github.com>
* [JENKINS-71715] getProvidersDescriptors can be an instance method
---------
Co-authored-by: Baptiste Mathus <bmathus@gmail.com>
Co-authored-by: Daniel Beck <1831569+daniel-beck@users.noreply.github.com>
Co-authored-by: Devin Nusbaum <dnusbaum@cloudbees.com>
Co-authored-by: Devin Nusbaum <dwnusbaum@users.noreply.github.com>
Co-authored-by: Daniel Beck <daniel-beck@users.noreply.github.com>
* missing 'alt' attribute added
* missing 'alt' attribute added
* replaced 'new URL' to 'new URI' per Java 11 target codebase
* Revert "replaced 'new URL' to 'new URI' per Java 11 target codebase"
This reverts commit aeef4c1e4b.
* replaced deprecated URL() with URI#.toURL()
* updated code per review
* updated
* updated code
* added back file
* Update core/src/main/java/hudson/cli/InstallPluginCommand.java
Co-authored-by: James Nord <jtnord@users.noreply.github.com>
* Update core/src/main/java/hudson/TcpSlaveAgentListener.java
remove non required as per suggestion
Co-authored-by: James Nord <jtnord@users.noreply.github.com>
* Update core/src/main/java/hudson/model/UpdateSite.java
Co-authored-by: James Nord <jtnord@users.noreply.github.com>
* Update core/src/main/java/hudson/model/UpdateSite.java
* Spotless
---------
Co-authored-by: Alexander Brandes <mc.cache@web.de>
Co-authored-by: James Nord <jtnord@users.noreply.github.com>
* Updating the descriptions for the escape/encode functions
Adding explanations and examples to the encode and escape functions
* Updated description for encode
I have edited some of the descriptions to bring them in line with the documentation over on husdon.Util
* Changed leading and trailing spaces on encode
I left one space at the end and added a note to say how a blank space is rendered
* Removed trailing whitespace to satisfy checkstyle
* Preserve formatting and escape HTML tags
* Update core/src/main/java/hudson/Functions.java
Co-authored-by: Daniel Beck <1831569+daniel-beck@users.noreply.github.com>
* Changed escaping on examples so they rendered properly in the javadoc
I was tempted to use {@literal &} notation but this added blank spaces, making the examples look strange. Instead I have used the &amp; notation.
* Update core/src/main/java/hudson/Functions.java
Co-authored-by: Daniel Beck <1831569+daniel-beck@users.noreply.github.com>
* Update core/src/main/java/hudson/Functions.java
Co-authored-by: Daniel Beck <1831569+daniel-beck@users.noreply.github.com>
* Update core/src/main/java/hudson/Functions.java
Co-authored-by: Daniel Beck <1831569+daniel-beck@users.noreply.github.com>
* Update core/src/main/java/hudson/Functions.java
Co-authored-by: Daniel Beck <1831569+daniel-beck@users.noreply.github.com>
* Update core/src/main/java/hudson/Functions.java
Co-authored-by: Daniel Beck <1831569+daniel-beck@users.noreply.github.com>
* Update core/src/main/java/hudson/Functions.java
Co-authored-by: Daniel Beck <1831569+daniel-beck@users.noreply.github.com>
---------
Co-authored-by: Alexander Brandes <mc.cache@web.de>
Co-authored-by: Daniel Beck <1831569+daniel-beck@users.noreply.github.com>