/** * Hudson defines a method {@link Builder#getDescriptor()}, which returns the corresponding * {@link Descriptor} object. Since we know that it's actually {@link DescriptorImpl}, override the method * and give a better return type, so that we can access {@link DescriptorImpl} methods more easily. This is * not necessary, but just a coding style preference. */ @Override public DescriptorImpl getDescriptor() { // see Descriptor javadoc for more about what a descriptor is. return (DescriptorImpl) super.getDescriptor(); }
@Override public DescriptorImpl getDescriptor() { return (DescriptorImpl) super.getDescriptor(); }
@Override public DescriptorImpl getDescriptor() { return (DescriptorImpl) super.getDescriptor(); }
@Override public DescriptorImpl getDescriptor() { return (DescriptorImpl) super.getDescriptor(); }
public Descriptor<BuildWrapper> superGetDescriptor() { return super.getDescriptor(); }
@Override public DescriptorImpl getDescriptor() { return (DescriptorImpl) super.getDescriptor(); }
@Override public DescriptorImpl getDescriptor() { return (DescriptorImpl) super.getDescriptor(); }
@Override public DescriptorImpl getDescriptor() { return (DescriptorImpl) super.getDescriptor(); }
@Override public DescriptorImpl getDescriptor() { return (DescriptorImpl) super.getDescriptor(); }
public DescriptorImpl getDescriptor() { return (DescriptorImpl) super.getDescriptor(); }
@Override public Descriptor<BuildWrapper> getDescriptor() { initPython(); if (pexec.isImplemented(8)) { return (Descriptor) pexec.execPython("get_descriptor"); } else { return super.getDescriptor(); } }
/** * Adds a new {@link BuildStep} to this {@link Project} and saves the * configuration. * * @param buildWrapper buildWrapper. * @throws java.io.IOException exception. */ @SuppressWarnings("unchecked") @Override public void addBuildWrapper(BuildWrapper buildWrapper) throws IOException { CascadingUtil.getExternalProjectProperty(this, buildWrapper.getDescriptor().getJsonSafeClassName()).setValue(buildWrapper); save(); }