Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update documentation - use with webSocket only #111

Open
rubroboletus opened this issue Sep 15, 2021 · 0 comments
Open

Update documentation - use with webSocket only #111

rubroboletus opened this issue Sep 15, 2021 · 0 comments

Comments

@rubroboletus
Copy link

Dependencies

none

Feature Request

In some environments, it is impossible to use jenkins agents with direct JNLP connection. But it is possible to use "webSocket". You just need to modify the docker agent template command like this one:

sh -cx curl --connect-timeout 20 --max-time 60 -o agent.jar $DOCKER_SWARM_PLUGIN_JENKINS_AGENT_JAR_URL && java -cp agent.jar hudson.remoting.jnlp.Main -headless -url `echo $DOCKER_SWARM_PLUGIN_JENKINS_AGENT_JAR_URL | sed 's/jnlpJars\/agent.jar//'` -workDir /tmp -webSocket $DOCKER_SWARM_PLUGIN_JENKINS_AGENT_SECRET $DOCKER_SWARM_PLUGIN_JENKINS_AGENT_NAME

Please update documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant