Shefy Gur-ary
Shefy Gur-ary

Reputation: 658

Jenkins cli command return authentication error

I tried to test my Jenkins on Ubuntu, by running the command from the Jenkins CLI section:

java -jar jenkins-cli.jar -s http://localhost:8080/ help

And got the error:

Error: You must authenticate to access this Jenkins

How do I write command with authentications?

Upvotes: 1

Views: 1153

Answers (1)

Shefy Gur-ary
Shefy Gur-ary

Reputation: 658

In order to run command with authentication, you need to specify the --username and the --password parameters, as shown in this image:

enter image description here

Upvotes: 1

Related Questions