after config jenkins-slave.xml for 401

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

after config jenkins-slave.xml for 401

Leo Wang

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


--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/0d2598f3-fa5c-4b64-80b7-6968c6c72762%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.