Getting below error
Error: you must authenticate to access this jenkins" when trying to run "Java -jar jenkins-cls.jar -s http://localhost:8080 /help
Steps performed as below,
1. Copied jenkins-cls.jar to the local drive.
2. Opened command prompt and navigate to path where jenkins-cls.jar is saved.
3. Type "Java -jar jenkins-cls.jar -s http://localhost:8080 /help" and press enter.
It should ask for pass-code but instead, it displayed message "Error: you must authenticate to access this jenkins".
Any help to resolve this query is highly appreciated.
The file name is now changed from jenkins-cls.jar
to jenkins-cli.jar
.
Make sure the user is registered in jenkins front-end and Enable Security is checked for the user.
java -jar jenkins-cli.jar -s http://localhost:8080 -auth username:password
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With