-
Notifications
You must be signed in to change notification settings - Fork 231
Avoid excessive Closures
#374
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
Conversation
| CheckoutScript.doCheckout(script, describable, null, body).call() | ||
| } | ||
| public void run(Closure body) { | ||
| try { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(ignore whitespace)
| private final ECSService ecsService; | ||
| private boolean launched; | ||
| private final int maxAttempts = 2; | ||
| private static final int maxAttempts = 2; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SpotBugs
| private static final Logger LOGGER = Logger.getLogger(ECSTaskTemplateStep.class.getName()); | ||
|
|
||
| private final String DEFAULT_CLOUD = "cloud-default"; | ||
| private static final String DEFAULT_CLOUD = "cloud-default"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
Depends on jenkinsci/pipeline-model-definition-plugin#762. Supersedes #364, #366, and #368. Untested since I did not see any relevant test cases and I presume manual testing would require special setup with an AWS account.