* Fix error message
* Fix English-o
Co-authored-by: Daniel Beck <1831569+daniel-beck@users.noreply.github.com>
* Use AbstractMethodError
For both ConsoleLogFilter and BuildWrapper, to better describe what the
problem is.
* Document the exception
* Adjust the error handling for BuildWrapper.setUp
This adds an override check to the deprecated overload, moving the
AbstractMethodError there to match.
The error in the new API is now an UnsupportedOperationException
because it's a case of an old plugin (supporting only Build) being
called for a non-Build build (e.g. MavenBuild).
* Correct class name
Co-authored-by: Daniel Beck <1831569+daniel-beck@users.noreply.github.com>
* Omit stacktraces on ClassNotFoundException in PluginStrategy classloading
* Modify implementation to not fill in stacktraces by default
* Apply suggestions from code review
* Restrict withFillInStackTracesOnClassNotFoundException() at Beta API
* Do not render parts of serialized a ConsoleNote if output begins in the middle of it. Generalize finding pre/postamble
* Do not render parts of serialized a ConsoleNote while writing non-html output as well. Test sample script output.
* Add positive scenario test case. Fine-tune implementation
* Render progressive output with explicitly set no preBuffer. Ensure only the relevant lines get processed
* Revert pre-buffer functionality.
Keep tests in adjusted form.
* Push offset forward to start writing log on line beginning
* Move and fine-tune tests. Avoid rendering no output in case offset falls on last line
* Dont render whole log on offset on the last line. It might be problematic for really large logs
* Style adjustments
* [JENKINS-57484] Improving the scripting capacity for the API Tokens
* Modification after review
* Add `@Restricted` as proposed by Daniel
- Also remove some whitespace modifications that were not required
* Method already present, revert the annotation addition
* Adjustment after merge conflict + cleanup
- Nonnull to NonNull
- Immutable is illegal :(
- Mistake in WhoAmITest
* Adding revokeToken + unit test for scripting
* Adding comment for system property not set + recommendation about revocation
* Update core/src/main/java/jenkins/install/SetupWizard.java
Co-authored-by: Jeff Thompson <37345299+jeffret-b@users.noreply.github.com>
Co-authored-by: Jeff Thompson <37345299+jeffret-b@users.noreply.github.com>
* [JENKINS-63795] allow MANAGE to restart and safe-restart jenkins.
* Adding a Rule test to validate that only MANAGE and ADMIN can restart Jenkins.
Co-authored-by: aHenryJard <ajard@cloudbees.com>