Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fix JENKINS-16632] Don't print auth stack traces.
Really fix JENKINS-16632. We cannot print the AuthorizationException stack trace because it contains private auth info and printing the stack trace writes it to the Jenkins build console log. Instead catch AuthorizationExceptions then create a new RuntimeException whose message can be printed. Print the RuntimeException stack trace and a helpful message that authorization failed.
- Loading branch information