Class Node

All Implemented Interfaces:
CapybaraPortingLayer
Direct Known Subclasses:
Jenkins, Slave

public abstract class Node extends ContainerPageObject
Common base for Jenkins and Slave.
Author:
ogondza
  • Constructor Details

    • Node

      protected Node(Jenkins j, URL url)
    • Node

      protected Node(com.google.inject.Injector i, URL url)
  • Method Details

    • getName

      public abstract String getName()
    • setExecutors

      public void setExecutors(int n)
    • setRemoteFs

      public void setRemoteFs(String s)
    • setLabels

      public void setLabels(String l)
    • runScript

      public String runScript(String script, Object... args)
      Run groovy string in groovy console. Defaults to a 30 second timeout.
      Parameters:
      script - Script text to run.
      args - Arguments to String#format in the script.
      Returns:
      String output of the script or null if there is none.
    • runScript

      public String runScript(String script, int timeoutSeconds, Object... args)
      Run groovy string in groovy console.
      Parameters:
      script - Script text to run.
      args - Arguments to String#format in the script.
      timeoutSeconds - Script execution timeout in seconds
      Returns:
      String output of the script or null if there is none.
      Since:
      TODO
    • getBuildHistory

      public BuildHistory getBuildHistory()
    • isTemporarillyOffline

      public boolean isTemporarillyOffline()