mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-17 22:12:25 +00:00
added the default implementation.
See http://www.nabble.com/DescriptorImpl-p22357210.html git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@16047 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
54ea933dd3
commit
e72ff22909
2 files changed
+6
-4
No files matched your search
@@ -67,10 +67,6 @@ public class FileParameterValue extends ParameterValue {
|
||||
file = null;
|
||||
return new Environment() {};
|
||||
}
|
||||
|
||||
public Descriptor<BuildWrapper> getDescriptor() {
|
||||
return null;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -26,6 +26,7 @@ package hudson.tasks;
|
||||
import hudson.ExtensionPoint;
|
||||
import hudson.Launcher;
|
||||
import hudson.DescriptorExtensionList;
|
||||
import hudson.FileSystemProvisionerDescriptor;
|
||||
import hudson.model.AbstractBuild;
|
||||
import hudson.model.Build;
|
||||
import hudson.model.BuildListener;
|
||||
@@ -185,6 +186,11 @@ public abstract class BuildWrapper implements ExtensionPoint, Describable<BuildW
|
||||
return null;
|
||||
}
|
||||
|
||||
public Descriptor<BuildWrapper> getDescriptor() {
|
||||
return (Descriptor<BuildWrapper>) Hudson.getInstance().getDescriptor(getClass());
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns all the registered {@link BuildWrapper} descriptors.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user