/** * Creates a new instance of a {@link Describable} * from the structured form submission data posted * by a radio button group. */ public T newInstanceFromRadioList(JSONObject config) throws FormException { if(config.isNullObject()) return null; // none was selected int idx = config.getInt("value"); return get(idx).newInstance(Stapler.getCurrentRequest(),config); }
@Initializer(after = InitMilestone.JOB_LOADED) public static void migrateJobs() throws IOException { GitLabPushTrigger.DescriptorImpl oldConfig = Trigger.all().get(GitLabPushTrigger.DescriptorImpl.class); if (!oldConfig.jobsMigrated) { GitLabConnectionConfig gitLabConfig = (GitLabConnectionConfig) Jenkins.getInstance().getDescriptor(GitLabConnectionConfig.class);
private static List<Descriptor<ListViewColumn>> extractOptionalColumns( DescriptorExtensionList<ListViewColumn, Descriptor<ListViewColumn>> extensionList) { return Lists.<Descriptor<ListViewColumn>>newArrayList( extensionList.get(WeatherColumn.DescriptorImpl.class), extensionList.get(StatusColumn.DescriptorImpl.class)); } }
/** * Obtains the {@link AntInstallation.DescriptorImpl} instance. */ public AntInstallation.DescriptorImpl getToolDescriptor() { return ToolInstallation.all().get(AntInstallation.DescriptorImpl.class); }
/** * Obtains the {@link AntInstallation.DescriptorImpl} instance. */ public AntInstallation.DescriptorImpl getToolDescriptor() { return ToolInstallation.all().get(AntInstallation.DescriptorImpl.class); }
/** * Obtains the {@link AntInstallation.DescriptorImpl} instance. */ public AntInstallation.DescriptorImpl getToolDescriptor() { return ToolInstallation.all().get(AntInstallation.DescriptorImpl.class); }
/** * Obtains the {@link GradleInstallation.DescriptorImpl} instance. */ public GradleInstallation.DescriptorImpl getToolDescriptor() { return ToolInstallation.all().get(GradleInstallation.DescriptorImpl.class); }
public static DescriptorImpl get() { return Trigger.all().get(DescriptorImpl.class); } }
public static DescriptorImpl get() { return Trigger.all().get(DescriptorImpl.class); }
public MsBuildInstallation.DescriptorImpl getToolDescriptor() { return ToolInstallation.all().get(MsBuildInstallation.DescriptorImpl.class); } }
/** * Obtains the {@link GradleInstallation.DescriptorImpl} instance. */ public GradleInstallation.DescriptorImpl getToolDescriptor() { return ToolInstallation.all().get(GradleInstallation.DescriptorImpl.class); }
/** * Obtains the {@link GradleInstallation.DescriptorImpl} instance. */ public GradleInstallation.DescriptorImpl getToolDescriptor() { return ToolInstallation.all().get(GradleInstallation.DescriptorImpl.class); }
/** * Obtains the {@link AntInstallation.DescriptorImpl} instance. */ public AntInstallation.DescriptorImpl getToolDescriptor() { return ToolInstallation.all().get(AntInstallation.DescriptorImpl.class); }
public SbtInstallation.DescriptorImpl getToolDescriptor() { return ToolInstallation.all().get(SbtInstallation.DescriptorImpl.class); }
/** * Get the installations. * * @return The installations */ public static PythonInstallation[] list() { return ToolInstallation.all().get(DescriptorImpl.class).getInstallations(); }
/** * Creates a new instance of a {@link Describable} * from the structured form submission data posted * by a radio button group. */ public T newInstanceFromRadioList(JSONObject config) throws FormException { if(config.isNullObject()) return null; // none was selected int idx = config.getInt("value"); return get(idx).newInstance(Stapler.getCurrentRequest(),config); }
/** * Creates a new instance of a {@link Describable} * from the structured form submission data posted * by a radio button group. */ public T newInstanceFromRadioList(JSONObject config) throws FormException { if(config.isNullObject()) return null; // none was selected int idx = config.getInt("value"); return get(idx).newInstance(Stapler.getCurrentRequest(),config); }
/** * Creates a new instance of a {@link Describable} from the structured form * submission data posted by a radio button group. */ public T newInstanceFromRadioList(JSONObject config) throws FormException { if (config.isNullObject()) { return null; // none was selected } int idx = config.getInt("value"); return get(idx).newInstance(Stapler.getCurrentRequest(), config); }
/** * Creates a new instance of a {@link Describable} * from the structured form submission data posted * by a radio button group. */ public T newInstanceFromRadioList(JSONObject config) throws FormException { if(config.isNullObject()) return null; // none was selected int idx = config.getInt("value"); return get(idx).newInstance(Stapler.getCurrentRequest(),config); }
/** * Creates a new instance of a {@link Describable} * from the structured form submission data posted * by a radio button group. */ public T newInstanceFromRadioList(JSONObject config) throws FormException { if(config.isNullObject()) return null; // none was selected int idx = config.getInt("value"); return get(idx).newInstance(Stapler.getCurrentRequest(),config); }