Tabnine Logo
DescribableList.add
Code IndexAdd Tabnine to your IDE (free)

How to use
add
method
in
hudson.util.DescribableList

Best Java code snippets using hudson.util.DescribableList.add (Showing top 20 results out of 315)

origin: jenkinsci/jenkins

/**
 * Adds a new {@link BuildStep} to this {@link Project} and saves the configuration.
 *
 * @deprecated as of 1.290
 *      Use {@code getPublishersList().add(x)}
 */
@Deprecated
public void addPublisher(Publisher buildStep) throws IOException {
  getPublishersList().add(buildStep);
}
origin: jenkinsci/jenkins

/**
 * Default value for {@link ToolInstallation#getProperties()} used in the form binding.
 * @since 1.305
 */
public DescribableList<ToolProperty<?>,ToolPropertyDescriptor> getDefaultProperties() throws IOException {
  DescribableList<ToolProperty<?>,ToolPropertyDescriptor> r
      = new DescribableList<ToolProperty<?>, ToolPropertyDescriptor>(NOOP);
  List<? extends ToolInstaller> installers = getDefaultInstallers();
  if(!installers.isEmpty())
    r.add(new InstallSourceProperty(installers));
  return r;
}
origin: jenkinsci/gitlab-plugin

if (trigger != null) {
  if (trigger.addCiMessage) {
    project.getPublishersList().add(new GitLabCommitStatusPublisher("jenkins", false));
if (trigger != null) {
  if (trigger.addNoteOnMergeRequest) {
    project.getPublishersList().add(new GitLabMessagePublisher());
    project.getPublishersList().add(new GitLabVotePublisher());
    project.getPublishersList().add(new GitLabAcceptMergeRequestPublisher());
origin: jenkinsci/jenkins

/**
 * Accepts submission from the configuration page.
 */
@RequirePOST
public synchronized HttpResponse doConfigSubmit( StaplerRequest req) throws IOException, ServletException, FormException {
  BulkChange bc = new BulkChange(MONITORS_OWNER);
  try {
    Jenkins.getInstance().checkPermission(Jenkins.ADMINISTER);
    monitors.rebuild(req,req.getSubmittedForm(),getNodeMonitorDescriptors());
    // add in the rest of instances are ignored instances
    for (Descriptor<NodeMonitor> d : NodeMonitor.all())
      if(monitors.get(d)==null) {
        NodeMonitor i = createDefaultInstance(d, true);
        if(i!=null)
          monitors.add(i);
      }
    // recompute the data
    for (NodeMonitor nm : monitors) {
      nm.triggerUpdate();
    }
    return FormApply.success(".");
  } finally {
    bc.commit();
  }
}
origin: org.jenkins-ci.main/jenkins-core

/**
 * Adds a new {@link BuildStep} to this {@link Project} and saves the configuration.
 *
 * @deprecated as of 1.290
 *      Use {@code getPublishersList().add(x)}
 */
@Deprecated
public void addPublisher(Publisher buildStep) throws IOException {
  getPublishersList().add(buildStep);
}
origin: org.jenkins-ci.plugins/cloudbees-folder

@SuppressWarnings("rawtypes") // else setOwner will not compile
public void addProperty(AbstractFolderProperty p) throws IOException {
  if (!p.getDescriptor().isApplicable(getClass())) {
    throw new IllegalArgumentException(p.getClass().getName() + " cannot be applied to " + getClass().getName());
  }
  p.setOwner(this);
  properties.add(p);
}
origin: jenkinsci/ghprb-plugin

protected void addIfMissing(GhprbExtension ext) {
  if (getExtensions().get(ext.getClass()) == null) {
    getExtensions().add(ext);
  }
}
origin: jenkinsci/ghprb-plugin

  private void addIfMissing(GhprbExtension ext) {
    if (getExtensions().get(ext.getClass()) == null) {
      getExtensions().add(ext);
    }
  }
}
origin: org.jenkins-ci.main/jenkins-core

/**
 * Default value for {@link ToolInstallation#getProperties()} used in the form binding.
 * @since 1.305
 */
public DescribableList<ToolProperty<?>,ToolPropertyDescriptor> getDefaultProperties() throws IOException {
  DescribableList<ToolProperty<?>,ToolPropertyDescriptor> r
      = new DescribableList<ToolProperty<?>, ToolPropertyDescriptor>(NOOP);
  List<? extends ToolInstaller> installers = getDefaultInstallers();
  if(!installers.isEmpty())
    r.add(new InstallSourceProperty(installers));
  return r;
}
origin: org.jvnet.hudson.main/hudson-core

/**
 * Default value for {@link ToolInstallation#getProperties()} used in the form binding.
 * @since 1.305
 */
public DescribableList<ToolProperty<?>,ToolPropertyDescriptor> getDefaultProperties() throws IOException {
  DescribableList<ToolProperty<?>,ToolPropertyDescriptor> r
      = new DescribableList<ToolProperty<?>, ToolPropertyDescriptor>(NOOP);
  List<? extends ToolInstaller> installers = getDefaultInstallers();
  if(!installers.isEmpty())
    r.add(new InstallSourceProperty(installers));
  return r;
}
origin: jenkinsci/ghprb-plugin

public DescribableList<GhprbExtension, GhprbExtensionDescriptor> getExtensions() {
  if (extensions == null) {
    extensions = new DescribableList<GhprbExtension, GhprbExtensionDescriptor>(Saveable.NOOP, Util.fixNull(extensions));
    extensions.add(new GhprbSimpleStatus());
  }
  return extensions;
}
origin: uber/phabricator-jenkins-plugin

  @Override
  protected void addBuildStep() {
    p.getBuildWrappersList().add(wrapper);
  }
}
origin: org.jvnet.hudson.main/hudson-test-framework

/**
 * Performs a configuration round-trip testing for a publisher.
 */
protected <P extends Publisher> P configRoundtrip(P before) throws Exception {
  FreeStyleProject p = createFreeStyleProject();
  p.getPublishersList().add(before);
  configRoundtrip(p);
  return (P)p.getPublishersList().get(before.getClass());
}
origin: org.jvnet.hudson.main/hudson-test-harness

/**
 * Performs a configuration round-trip testing for a builder.
 */
protected <B extends Builder> B configRoundtrip(B before) throws Exception {
  FreeStyleProject p = createFreeStyleProject();
  p.getBuildersList().add(before);
  configRoundtrip(p);
  return (B)p.getBuildersList().get(before.getClass());
}
origin: org.eclipse.hudson/hudson-test-framework

/**
 * Performs a configuration round-trip testing for a builder.
 */
protected <B extends Builder> B configRoundtrip(B before) throws Exception {
  FreeStyleProject p = createFreeStyleProject();
  p.getBuildersList().add(before);
  configRoundtrip(p);
  return (B) p.getBuildersList().get(before.getClass());
}
origin: org.jvnet.hudson.main/hudson-test-harness

/**
 * Performs a configuration round-trip testing for a publisher.
 */
protected <P extends Publisher> P configRoundtrip(P before) throws Exception {
  FreeStyleProject p = createFreeStyleProject();
  p.getPublishersList().add(before);
  configRoundtrip(p);
  return (P)p.getPublishersList().get(before.getClass());
}
origin: uber/phabricator-jenkins-plugin

public static void setEnvironmentVariables(JenkinsRule j, Map<String, String> params) throws IOException {
  EnvironmentVariablesNodeProperty prop = new EnvironmentVariablesNodeProperty();
  EnvVars envVars = prop.getEnvVars();
  envVars.putAll(params);
  j.jenkins.getGlobalNodeProperties().add(prop);
}
origin: jenkinsci/pipeline-model-definition-plugin

@BeforeClass
public static void setUpAgent() throws Exception {
  s = j.createOnlineSlave();
  s.setNumExecutors(4);
  s.setLabelString("some-label docker test");
  s.getNodeProperties().add(new EnvironmentVariablesNodeProperty(new EnvironmentVariablesNodeProperty.Entry("ONAGENT", "true")));
}
origin: jenkinsci/pipeline-model-definition-plugin

@BeforeClass
public static void setUpAgent() throws Exception {
  s = j.createOnlineSlave();
  s.setLabelString("some-label docker");
  s.getNodeProperties().add(
      new EnvironmentVariablesNodeProperty(
          new EnvironmentVariablesNodeProperty.Entry("HAS_BACKSLASHES", "C:\\Windows"),
          new EnvironmentVariablesNodeProperty.Entry("FOO", "OTHER")));
}
origin: uber/phabricator-jenkins-plugin

@Test
public void testPostUnit() throws Exception {
  TestUtils.addCopyBuildStep(p, TestUtils.JUNIT_XML, JUnitTestProvider.class, "go-torch-junit.xml");
  p.getPublishersList().add(TestUtils.getDefaultXUnitPublisher());
  FreeStyleBuild build = buildWithConduit(getFetchDiffResponse(), null, new JSONObject());
  assertEquals(Result.SUCCESS, build.getResult());
  assertLogContains("Publishing unit results to Harbormaster for 35 tests", build);
}
hudson.utilDescribableListadd

Popular methods of DescribableList

  • get
  • toList
  • <init>
  • rebuild
  • remove
  • setOwner
  • getAll
  • toMap
    Creates a detached map from the current snapshot of the data, keyed from a descriptor to an instance
  • buildDependencyGraph
    Picks up DependecyDeclarers and allow it to build dependencies.
  • rebuildHetero
    Rebuilds the list by creating a fresh instances from the submitted form. This version works with the
  • addAll
  • isEmpty
  • addAll,
  • isEmpty,
  • replace,
  • replaceBy,
  • addAllTo,
  • removeAll,
  • size,
  • onModified,
  • clear

Popular in Java

  • Reactive rest calls using spring rest template
  • onCreateOptionsMenu (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • putExtra (Intent)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now