public class Main extends Object
See also jenkins-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
Deprecated.
|
String |
instanceIdentity
The controller'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 |
Map<String,String> |
webSocketHeaders |
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
@Deprecated 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.
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
IOException
InterruptedException
public static void _main(String[] args) throws IOException, InterruptedException, org.kohsuke.args4j.CmdLineException
IOException
InterruptedException
org.kohsuke.args4j.CmdLineException
public void main() throws IOException, InterruptedException
IOException
InterruptedException
public Engine createEngine()
Copyright © 2004–2022. All rights reserved.