java.lang.Object
org.jenkinsci.plugins.scriptler.config.Script
All Implemented Interfaces:
Serializable, Comparable<Script>, NamedResource

public class Script extends Object implements Comparable<Script>, NamedResource, Serializable
See Also:
  • Field Details

    • name

      public final String name
    • comment

      public final String comment
    • originCatalog

      public final String originCatalog
    • originScript

      public final String originScript
    • originDate

      public final String originDate
    • nonAdministerUsing

      public final boolean nonAdministerUsing
    • onlyController

      public final boolean onlyController
    • onlyMaster

      @Deprecated(since="381") public final Boolean onlyMaster
      Deprecated.
      Use onlyController instead.
    • COMPARATOR_BY_NAME

      public static final Comparator<Script> COMPARATOR_BY_NAME
  • Constructor Details

    • Script

      public Script(String id, String name, String comment, boolean nonAdministerUsing, @NonNull List<Parameter> parameters, boolean onlyController)
      used to create/update a new script in the UI
    • Script

      public Script(String id, String comment, boolean available, boolean nonAdministerUsing, boolean onlyController)
      used during plugin start to synchronize available scripts
    • Script

      public Script(String id, String name, String comment, boolean available, String originCatalog, String originScript, String originDate, @NonNull List<Parameter> parameters)
      Constructor to create a script imported from a foreign catalog.
    • Script

      public Script(String id, String name, String comment, String originCatalog, String originScript, String originDate, boolean nonAdministerUsing, @NonNull List<Parameter> parameters, boolean onlyController)
      used to merge scripts
    • Script

      public Script(String id, String name, String comment, boolean available, String originCatalog, String originScript, String originDate, boolean nonAdministerUsing, @NonNull List<Parameter> parameters, boolean onlyController)
      used to merge scripts
  • Method Details