our jekin server add base auth:
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