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 #1653

Merged
merged 2 commits into from
Feb 26, 2025
Merged

Avoid excessive Closures #1653

merged 2 commits into from
Feb 26, 2025

Conversation

jglick
Copy link
Member

@jglick jglick commented Feb 25, 2025

@jglick jglick requested a review from a team as a code owner February 25, 2025 18:18
@jglick jglick added the bug Bug Fixes label Feb 25, 2025
public KubernetesDeclarativeAgentScript(CpsScript s, KubernetesDeclarativeAgent a) {
super(s, a)
}

@Override
public Closure run(Closure body) {
return {
if ((describable.getYamlFile() != null) && (describable.hasScmContext(script))) {
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 WS)

@jglick jglick requested a review from Vlatombe February 25, 2025 19:23
@Vlatombe Vlatombe merged commit 5b846cf into jenkinsci:master Feb 26, 2025
9 checks passed
@jglick jglick deleted the closuritis branch February 26, 2025 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug Fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants