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 booleanisDevelopmentModeSet to true if we are running insidemvn jetty:run.static booleanisUnitTestSet to true if we are running unit tests.static intTIMEOUTTime 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 voidmain(String[] args)static intremotePost(String[] args)Run command and send result toExternalJobin theexternal-monitor-jobplugin.static intrun(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:runsince 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[])
-
-