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 copying session.projectBuildingRequest unless overriding something #314

Merged
merged 1 commit into from
Mar 22, 2022

Conversation

jglick
Copy link
Member

@jglick jglick commented Mar 22, 2022

As proposed in #310 (comment), cleaning up some code mostly introduced in #247 or which at least could have been simplified at that time. Creating a DefaultProjectBuildingRequest based on the session.projectBuildingRequest makes sense if you actually need to override some property. Otherwise it just copies properties from the original. And that means ${localRepository} and ${project.remoteArtifactRepositories} should not need to be injected; pick those things up from the session.

@jglick jglick requested a review from basil March 22, 2022 15:44
@basil basil merged commit edfb544 into jenkinsci:master Mar 22, 2022
@jglick jglick deleted the DefaultProjectBuildingRequest branch March 22, 2022 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants