Skip to content
This repository has been archived by the owner on Dec 15, 2021. It is now read-only.

JobPropertyStep #209

Merged
merged 14 commits into from
Oct 28, 2015
Merged

JobPropertyStep #209

merged 14 commits into from
Oct 28, 2015

Conversation

jglick
Copy link
Member

@jglick jglick commented Sep 17, 2015

JENKINS-30519

@reviewbybees esp. @kohsuke & @stephenc

@ghost
Copy link

ghost commented Sep 17, 2015

This pull request originates from a CloudBees employee. At CloudBees, we require that all pull requests be reviewed by other CloudBees employees before we seek to have the change accepted. If you want to learn more about our process please see this explanation.

@Extension public static class HideSuperfluousBranchProperties extends DescriptorVisibilityFilter {

@Override public boolean filter(Object context, Descriptor descriptor) {
if (context instanceof WorkflowMultiBranchProject && (descriptor.clazz == RateLimitBranchProperty.class || descriptor.clazz == BuildRetentionBranchProperty.class)) {
Copy link
Member

Choose a reason for hiding this comment

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

It seems hacky? If another property like RateLimitBranchProperty is added for some reason, it should be excluded here too. Is not there another way to exclude them?

Copy link
Member Author

Choose a reason for hiding this comment

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

We want to include unknown branch properties by default. There is no way that I can think of to mechanically determine whether they are simply wrappers for job properties.

jglick added a commit that referenced this pull request Oct 28, 2015
@jglick jglick merged commit 9a28e9c into jenkinsci:master Oct 28, 2015
@jglick jglick deleted the JobPropertyStep branch October 28, 2015 18:57
jglick added a commit to jglick/workflow-multibranch-plugin that referenced this pull request May 25, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants