Skip to content
Browse files

[FIXED JENKINS-15445] rely on 1.536 so JENKINS-18629 doesn’t prevent …

…BuildStep without a @DataBoundConstructor to be used.
  • Loading branch information
ndeloof committed Aug 26, 2014
1 parent f085788 commit 132178a305c0d8ece4bd58622811497745816667
@@ -6,9 +6,7 @@
<!-- <version>1.424.6</version> -->
<!-- <version>1.460</version> e.g. -->

@@ -63,7 +61,7 @@

@@ -32,7 +32,6 @@
import hudson.tasks.BuildStepDescriptor;
import hudson.tasks.Builder;

import java.lang.reflect.Constructor;
import java.util.ArrayList;
import java.util.List;

@@ -66,7 +65,7 @@ public DefaultBuilderDescriptorLister() {
BuildStepDescriptor<? extends Builder> buildStepDescriptor = (BuildStepDescriptor) descriptor;
if (buildStepDescriptor.isApplicable(project.getClass()) && hasDbc(buildStepDescriptor.clazz)){
if (buildStepDescriptor.isApplicable(project.getClass())){
@@ -77,14 +76,6 @@ public DescriptorImpl getDescriptor() {
return Hudson.getInstance().getDescriptorByType(DescriptorImpl.class);

private boolean hasDbc(final Class<?> clazz) {
for (Constructor<?> constructor : clazz.getConstructors()) {
if (constructor.isAnnotationPresent(DataBoundConstructor.class))
return true;
return false;

public static class DescriptorImpl extends Descriptor<BuilderDescriptorLister> {

3 comments on commit 132178a


This comment has been minimized.

Copy link

@imod imod replied Aug 26, 2014

@ndeloof I think we had this before already once and we had to revert it because jenkins could not handle it. Is there anything fixed in core which now makes you think this would work?
If you refer to the fix for, then this will not work - because this change was reverted in core 1.537 again.


This comment has been minimized.

Copy link

@ndeloof ndeloof replied Aug 26, 2014

@imod yes, I re-applied this based on fix made on stappler (so requirement for 1.536), didn't know this has been reverted in 1.537. What a pity. reverting this commit.


This comment has been minimized.

Copy link

@imod imod replied Sep 1, 2014

@ndeloof yeah, its quite a shame I was so hopping this is going to work now :(

Please sign in to comment.