/** * Gets the descriptor instance of the current Hudson by its type. */ protected <T extends Descriptor<?>> T get(Class<T> d) { return hudson.getDescriptorByType(d); }
/** * Gets the descriptor instance of the current Hudson by its type. */ protected <T extends Descriptor<?>> T get(Class<T> d) { return hudson.getDescriptorByType(d); }
/** * Gets the descriptor instance of the current Hudson by its type. */ protected <T extends Descriptor<?>> T get(Class<T> d) { return hudson.getDescriptorByType(d); }
/** * Getter for the Descriptor. * @return the Descriptor for the PluginDraftPublishedEvent. */ @Override public Descriptor<PluginGerritEvent> getDescriptor() { return Hudson.getInstance().getDescriptorByType(PluginDraftPublishedEventDescriptor.class); }
/** * Getter for the Descriptor. * @return the Descriptor for the PluginRefUpdatedEvent. */ @Override public Descriptor<PluginGerritEvent> getDescriptor() { return Hudson.getInstance().getDescriptorByType(PluginRefUpdatedEventDescriptor.class); }
/** * Getter for the Descriptor. * @return the Descriptor for the PluginChangeMergedEvent. */ @Override public Descriptor<PluginGerritEvent> getDescriptor() { return Hudson.getInstance().getDescriptorByType(PluginChangeMergedEventDescriptor.class); }
public Day.DayDescriptor getDayDescriptor() { return Hudson.getInstance().getDescriptorByType(Day.DayDescriptor.class); } public static ArrayList<Day> getAllDays() {
@Override @JsonIgnore public IndicationDescriptor getDescriptor() { return Hudson.getInstance().getDescriptorByType(BuildLogIndicationDescriptor.class); }
private static Iterable<GroovyParser> getDynamicParserDescriptions() { Hudson instance = Hudson.getInstance(); if (instance != null) { WarningsDescriptor descriptor = instance.getDescriptorByType(WarningsDescriptor.class); if (descriptor != null) { return Lists.newArrayList(descriptor.getParsers()); } } return Collections.emptyList(); }
private static Iterable<GroovyParser> getDynamicParserDescriptions() { Hudson instance = Hudson.getInstance(); if (instance != null) { WarningsDescriptor descriptor = instance.getDescriptorByType(WarningsDescriptor.class); if (descriptor != null) { return descriptor.getParsers(); } } return Collections.emptyList(); }
/** * Lists available toolinstallations. * * @return list of available git tools */ public List<GitTool> getGitTools() { GitTool[] gitToolInstallations = Hudson.getInstance() .getDescriptorByType(GitTool.DescriptorImpl.class) .getInstallations(); return Arrays.asList(gitToolInstallations); }
/** * Get a shell * * @param channel * The channel * @return The shell to use to launch the script file */ protected static String getShell(VirtualChannel channel) { return Hudson.getInstance().getDescriptorByType(Shell.DescriptorImpl.class).getShellOrDefault(channel); } }
public Integer call() { return Hudson.getInstance().getDescriptorByType(SubversionSCM.DescriptorImpl.class).getWorkspaceFormat(); } });
@Override public void setInstallations(AntInstallation... installations) { Hudson.getInstance().getDescriptorByType(Ant.DescriptorImpl.class).setInstallations(installations); }
@Override public void setInstallations(MavenInstallation... installations) { Hudson.getInstance().getDescriptorByType(Maven.DescriptorImpl.class).setInstallations(installations); }
@Override public AntInstallation[] getInstallations() { return Hudson.getInstance().getDescriptorByType(Ant.DescriptorImpl.class).getInstallations(); }
@Override public AntInstallation[] getInstallations() { return Hudson.getInstance().getDescriptorByType(Ant.DescriptorImpl.class).getInstallations(); }
protected MavenInstallation configureMaven3() throws Exception { MavenInstallation mvn = configureDefaultMaven("apache-maven-3.0.1", MavenInstallation.MAVEN_30); MavenInstallation m3 = new MavenInstallation("apache-maven-3.0.1", mvn.getHome(), NO_PROPERTIES); hudson.getDescriptorByType(Maven.DescriptorImpl.class).setInstallations(m3); return m3; }
/** * Returns the user that are participants in the ci game * * @return list containing users. */ @Exported public List<UserScore> getUserScores() { return getUserScores(User.getAll(), Hudson.getInstance().getDescriptorByType(GameDescriptor.class).getNamesAreCaseSensitive()); }
/** * Returns the user that are participants in the ci game * * @return list containing users. */ @Exported public List<UserScore> getUserScores() { return getUserScores(User.getAll(), Hudson.getInstance().getDescriptorByType(GameDescriptor.class).getNamesAreCaseSensitive()); }