Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix angry jenkins with broader exception handling #76

Merged
merged 4 commits into from
Apr 12, 2021

Conversation

schottsfired
Copy link
Contributor

@schottsfired schottsfired commented Jun 8, 2020

  • Auto-format AWSCredentialsImpl.java
  • Change exception type from AmazonServiceException to RuntimeException

When garbage data is provided in the AWS credential configuration, the Amazon SDK throws a (previously uncaught) SdkClientException e.g. "unable to determine region ..." which caused an angry Jenkins to appear below the secretKey field. Now that the broad exception is caught, a much better looking error is shown which relays information about the SdkClientException.

Note: AmazonServiceException is a subclass of SdkClientException and RuntimeException.

David Schott and others added 2 commits June 8, 2020 17:19
…CredentialsImpl.java

Co-authored-by: Jesse Glick <jglick@cloudbees.com>
@escoem escoem merged commit 37a6eef into jenkinsci:master Apr 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants