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
Two mandatory parameters: secret key, and agent name.
|
List<String> |
candidateCertificates |
String |
credentials |
String |
directConnection
Connect directly to the TCP port specified, skipping the HTTP(S) connection parameter download.
|
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 |
instanceIdentity
The master's instance identity.
|
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 |
List<String> |
protocols
When instanceIdentity is set, the agent skips connecting via http(s) where it normally
obtains the configured protocols.
|
String |
proxyCredentials |
boolean |
showHelp
Shows help message and then exits
|
boolean |
showVersion
Shows version information and then exits
|
String |
tunnel |
List<URL> |
urls |
boolean |
webSocket |
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 boolean webSocket
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 String directConnection
public String instanceIdentity
public List<String> protocols
public boolean showHelp
public boolean showVersion
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–2020. All rights reserved.