Package hudson
Class Main
- java.lang.Object
-
- hudson.Main
-
public class Main extends Object
Entry point to Hudson from command line.This tool runs another process and sends its result to Hudson.
- Author:
- Kohsuke Kawaguchi
-
-
Field Summary
Fields Modifier and Type Field Description static boolean
isDevelopmentMode
Set to true if we are running insidemvn jetty:run
.static boolean
isUnitTest
Set to true if we are running unit tests.static int
TIMEOUT
Time out for socket connection to Hudson.
-
Constructor Summary
Constructors Constructor Description Main()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
main(String[] args)
static int
remotePost(String[] args)
Run command and send result toExternalJob
in theexternal-monitor-job
plugin.static int
run(String[] args)
-
-
-
Field Detail
-
isUnitTest
public static boolean isUnitTest
Set to true if we are running unit tests.
-
isDevelopmentMode
public static boolean isDevelopmentMode
Set to true if we are running insidemvn jetty:run
. This is also set if running insidemvn hpi:run
since plugins parent POM 2.30.
-
TIMEOUT
public static final int TIMEOUT
Time out for socket connection to Hudson.
-
-
Method Detail
-
main
public static void main(String[] args)
- See Also:
remotePost(java.lang.String[])
-
run
public static int run(String[] args) throws Exception
- Throws:
Exception
- See Also:
remotePost(java.lang.String[])
-
-