mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-06 08:36:01 +00:00
Testing against the type allows us to check the applicability of a build step even if a concrete instance doesn't exist.
Turns out this is crucial for the promoted-builds plugin since at the configuration time there might not exist any promotion job. git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@5600 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
03e2437625
commit
ce67ddb991
3 files changed
+4
-3
No files matched your search
@@ -456,7 +456,7 @@ public class Functions {
|
||||
for (Descriptor<T> b : list) {
|
||||
if (b instanceof BuildStepDescriptor) {
|
||||
BuildStepDescriptor bsd = (BuildStepDescriptor) b;
|
||||
if(bsd.isApplicable(project))
|
||||
if(bsd.isApplicable(project.getClass()))
|
||||
result.add(b);
|
||||
} else {
|
||||
// old plugins built before 1.150 may not implement BuildStepDescriptor
|
||||
|
||||
Reference in new issue
Block a user