public class Main extends Object
See also slave-agent.jnlp.jelly in the core.
| Modifier and Type | Field and Description |
|---|---|
File |
agentLog
Specifies a destination for error logs.
|
List<String> |
args
4 mandatory parameters.
|
List<String> |
candidateCertificates |
String |
credentials |
boolean |
disableHttpsCertValidation
Disables HTTPs Certificate validation of the server when using
JnlpAgentEndpointResolver. |
boolean |
failIfWorkDirIsMissing
Fail the initialization if the workDir or internalDir are missing.
|
boolean |
headlessMode |
String |
internalDir
Specifies a directory within
workDir, which stores all the remoting-internal files. |
File |
jarCache |
File |
loggingConfigFile
Specified location of the property file with JUL settings.
|
boolean |
noKeepAlive |
boolean |
noReconnect |
String |
proxyCredentials |
String |
tunnel |
List<URL> |
urls |
File |
workDir
Specifies a default working directory of the remoting instance.
|
| Constructor and Description |
|---|
Main() |
| Modifier and Type | Method and Description |
|---|---|
static void |
_main(String[] args)
Main without the argument handling.
|
Engine |
createEngine() |
void |
main() |
static void |
main(String[] args) |
public String tunnel
public boolean headlessMode
public String credentials
public String proxyCredentials
public boolean noReconnect
public boolean noKeepAlive
public boolean disableHttpsCertValidation
JnlpAgentEndpointResolver.
This option is not recommended for production use.@CheckForNull public File agentLog
workDir.
If both this options and workDir is not set, the log will not be generated.@CheckForNull public File loggingConfigFile
@CheckForNull public File workDir
In order to retain compatibility, the option is disabled by default.
Jenkins specifics: This working directory is expected to be equal to the agent root specified in Jenkins configuration.
@Nonnull public String internalDir
workDir, which stores all the remoting-internal files.
This option is not expected to be used frequently, but it allows remoting users to specify a custom
storage directory if the default remoting directory is consumed by other stuff.
@Nonnull public boolean failIfWorkDirIsMissing
public File jarCache
public static void main(String[] args) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic static void _main(String[] args) throws IOException, InterruptedException, org.kohsuke.args4j.CmdLineException
IOExceptionInterruptedExceptionorg.kohsuke.args4j.CmdLineExceptionpublic void main()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic Engine createEngine()
Copyright © 2004–2018. All rights reserved.