Issue
We want to be able to launch a JNLP agent using command line options, nevertheless when the agent is running others could get connection information that we would prefer to hide from a ps
command execution.
Environment
- CloudBees CI (CloudBees Core) on modern cloud platforms - Managed Master
- CloudBees CI (CloudBees Core) on modern cloud platforms - Operations Center
- CloudBees CI (CloudBees Core) on traditional platforms - Client Master
- CloudBees CI (CloudBees Core) on traditional platforms - Operations Center
- CloudBees Jenkins Enterprise - Managed Master
- CloudBees Jenkins Enterprise - Operations Center
- CloudBees Jenkins Platform - Client Master
- CloudBees Jenkins Platform - Operations Center
- CloudBees Jenkins Distribution
- Jenkins LTS
Resolution
As described in one of the comments inside JENKINS-18342, we can create a file where each entry shown below must be in a different line:
params.txt
-jnlpUrl
http://somewhere/xx.jnlp
-secret
<SECRET>
Once that we save this file as params.txt
we should be able to invoke the agent using the syntax shown below:
java -jar agent.jar @params.txt
0 Comments