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

[JENKINS-40803] provide a config file resolution context for promotions #113

Merged
merged 1 commit into from
Mar 12, 2018

Conversation

Greybird
Copy link
Contributor

downstream proposal for jenkinsci/config-file-provider-plugin#49.
to implement solution proposed for #104

Copy link
Member

@oleg-nenashev oleg-nenashev left a 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>
Copy link
Member

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

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 {
Copy link
Member

Choose a reason for hiding this comment

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

Add @Restricted(NoExternalUse.class)

@Greybird
Copy link
Contributor Author

Thanks for the review @oleg-nenashev
Did the requested changes, can you review again?

Copy link
Member

@oleg-nenashev oleg-nenashev left a 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

Copy link
Member

@dwnusbaum dwnusbaum left a 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!

@Greybird
Copy link
Contributor Author

Following release of 2.18 version of config-files-provider plugin, I updated the PR to use this version.
Thanks for your help.

@dwnusbaum
Copy link
Member

@Greybird Thanks! I am planing on merging and releasing the change tonight.

@dwnusbaum dwnusbaum merged commit 9d05301 into jenkinsci:master Mar 12, 2018
@dwnusbaum dwnusbaum mentioned this pull request Mar 12, 2018
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.

3 participants