Class Task<T extends Node>

java.lang.Object
cd.go.contrib.plugins.configrepo.groovy.dsl.Node<T>
cd.go.contrib.plugins.configrepo.groovy.dsl.Task<T>
All Implemented Interfaces:
Configurable, KeyVal.Mixin, UtilsMixin
Direct Known Subclasses:
AbstractFetchArtifactTask, ExecTask, PluginTask, ShellTask

public abstract class Task<T extends Node> extends Node<T>
  • Method Details

    • getRunIf

      public String getRunIf()
      Specifies when a task should be allowed to run. Multiple conditions may be defined for each task.

      A running job on an agent has two possible states: passed or failed. A job starts in the state passed. If any task fails, it transitions to the state failed.

      A task can specify any of three possible runif filters: passed, failed or any. Defaults to passed.

    • setRunIf

      public void setRunIf(String runIf)
      Specifies when a task should be allowed to run. Multiple conditions may be defined for each task.

      A running job on an agent has two possible states: passed or failed. A job starts in the state passed. If any task fails, it transitions to the state failed.

      A task can specify any of three possible runif filters: passed, failed or any. Defaults to passed.

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Node<T extends Node>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Node<T extends Node>
    • toString

      public String toString()
      Overrides:
      toString in class Object