after config jenkins-slave.xml for 401

146 views
Skip to first unread message

Leo Wang

unread,
Oct 27, 2017, 6:47:06 AM10/27/17
to Jenkins Users

our jekin server add base auth:

I follow 16273 and 4017

config jenkins-slave like :

<arguments>-Xrs  -jar "%BASE%\slave.jar" -jnlpCredentials username:password -jnlpUrl https://domain/computer/item/slave-agent.jnlp -secret token</arguments>

still not work ,error log:

Exception in thread "main" java.io.IOException: -jnlpCredentials and -secret are mutually exclusive
at hudson.remoting.Launcher.parseJnlpArguments(Launcher.java:460)
at hudson.remoting.Launcher.run(Launcher.java:316)
at hudson.remoting.Launcher.main(Launcher.java:277)


if I remove -secret :

Failing to obtain https://domain/project/slave-agent.jnlp
java.io.IOException: Failed to load https://domain/project/slave-agent.jnlp: 403 Forbidden
at hudson.remoting.Launcher.parseJnlpArguments(Launcher.java:485)
at hudson.remoting.Launcher.run(Launcher.java:316)
at hudson.remoting.Launcher.main(Launcher.java:277)
Waiting 10 seconds before retry



if removed -jnlpCredentials:

Failing to obtain https://domain/project/slave-agent.jnlp?encrypt=true
java.io.IOException: Failed to load https://domain/project//slave-agent.jnlp?encrypt=true: 401 Unauthorized
at hudson.remoting.Launcher.parseJnlpArguments(Launcher.java:485)
at hudson.remoting.Launcher.run(Launcher.java:316)
at hudson.remoting.Launcher.main(Launcher.java:277)
Waiting 10 seconds before retry



how too config

thanks


Reply all
Reply to author
Forward
0 new messages