Package hudson.cli

Class SetExternalBuildResultCommand

java.lang.Object
hudson.cli.CLICommand
hudson.cli.SetExternalBuildResultCommand
All Implemented Interfaces:
ExtensionPoint, Cloneable

@Extension public class SetExternalBuildResultCommand extends CLICommand
Set build result for external monitor job.
Author:
David Ostrovsky
  • Field Details

    • job

      public transient TopLevelItem job
    • displayName

      public transient String displayName
    • result

      public transient int result
    • duration

      public transient long duration
    • log

      public String log
    • dumpBuildNumber

      public boolean dumpBuildNumber
  • Constructor Details

    • SetExternalBuildResultCommand

      public SetExternalBuildResultCommand()
  • Method Details

    • getShortDescription

      public String getShortDescription()
      Specified by:
      getShortDescription in class CLICommand
    • run

      protected int run() throws Exception
      Entry point to the SetExternalBuildResultCommand command.

      Schedule an external build, put passed build result. If log is '-' then gzipped stream is expected on stdin, otherwise it is raw string (not BASE64 encoded). If -dump-build-number is set, the new created build number dumped to the stdout

      Specified by:
      run in class CLICommand
      Returns:
      0: success.
      Throws:
      Exception