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

Avoid excessive Closures #374

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

jglick
Copy link
Member

@jglick jglick commented Feb 25, 2025

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.

@jglick jglick requested a review from a team as a code owner February 25, 2025 19:15
CheckoutScript.doCheckout(script, describable, null, body).call()
}
public void run(Closure body) {
try {
Copy link
Member Author

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;
Copy link
Member Author

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";
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

@jglick jglick marked this pull request as draft March 3, 2025 18:26
@jglick

This comment was marked as resolved.

@jglick jglick marked this pull request as ready for review March 4, 2025 22:03
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.

1 participant