-
Notifications
You must be signed in to change notification settings - Fork 168
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
[JENKINS-40803] provide a config file resolution context for promotions #113
Conversation
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.
Minor changes are needed, mostly LGTM
pom.xml
Outdated
<dependency> | ||
<groupId>org.jenkins-ci.plugins</groupId> | ||
<artifactId>config-file-provider</artifactId> | ||
<version>2.17.1-SNAPSHOT</version> |
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.
You could use "maven deploy" to deploy a timestamped snapshot for testing this PR in CI
pom.xml
Outdated
<exclusions> | ||
<exclusion> | ||
<groupId>org.jenkins-ci.plugins</groupId> | ||
<artifactId>structs</artifactId> |
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.
bad idea, it's better to add explicit dependency on Structs plugin to this POM
import org.jenkinsci.plugins.configfiles.ConfigContextResolver; | ||
|
||
@Extension(optional = true) | ||
public class JobPropertyImplConfigContextResolver extends ConfigContextResolver { |
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.
Add @Restricted(NoExternalUse.class)
Thanks for the review @oleg-nenashev |
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.
👍 from me. Will also request a review from @dwnusbaum, because he was interested in co-maintaining this plugin
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.
Looks good to me, thanks for working on this @Greybird!
Following release of 2.18 version of config-files-provider plugin, I updated the PR to use this version. |
@Greybird Thanks! I am planing on merging and releasing the change tonight. |
downstream proposal for jenkinsci/config-file-provider-plugin#49.
to implement solution proposed for #104