-
Notifications
You must be signed in to change notification settings - Fork 227
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
Avoid excessive Closure
s
#374
base: master
Are you sure you want to change the base?
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)
@@ -69,7 +69,7 @@ public class ECSLauncher extends JNLPLauncher { | |||
private final ECSCloud cloud; | |||
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
@@ -47,7 +47,7 @@ public class ECSTaskTemplateStep extends Step implements Serializable { | |||
private static final long serialVersionUID = 1L; | |||
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.