jenkins-cli
jenkins-cli copied to clipboard
user的create、delete、token不好用,具体报错信息如下
jcli的版本为:v0.0.16
jcli user create abc
2019/10/06 21:36:01 <html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 404 Not Found</title>
</head>
<body><h2>HTTP ERROR 404</h2>
<p>Problem accessing //securityRealm/createAccountByAdmin. Reason:
<pre> Not Found</pre></p><hr><a href="http://eclipse.org/jetty">Powered by Jetty:// 9.4.z-SNAPSHOT</a><hr/>
</body>
</html>
How to show this error?
Just execute commad jcli user create abc
Unable to reproduce this scene
On Mon, Oct 7, 2019 at 8:32 AM Zhao Xiaojie [email protected] wrote:
Just execute commad jcli user create abc
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jenkins-zh/jenkins-cli/issues/91?email_source=notifications&email_token=AE47N3OWOD7ZJGY62GBYMILQNJ7QXA5CNFSM4IICA2J2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAOYDPI#issuecomment-538804669, or mute the thread https://github.com/notifications/unsubscribe-auth/AE47N3IYJ4LUTE2GXFPZIKTQNJ7QXANCNFSM4IICA2JQ .
Don't have any preset scenes?
On Mon, Oct 7, 2019 at 8:34 AM YanJun Shi [email protected] wrote:
Unable to reproduce this scene
On Mon, Oct 7, 2019 at 8:32 AM Zhao Xiaojie [email protected] wrote:
Just execute commad jcli user create abc
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jenkins-zh/jenkins-cli/issues/91?email_source=notifications&email_token=AE47N3OWOD7ZJGY62GBYMILQNJ7QXA5CNFSM4IICA2J2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAOYDPI#issuecomment-538804669, or mute the thread https://github.com/notifications/unsubscribe-auth/AE47N3IYJ4LUTE2GXFPZIKTQNJ7QXANCNFSM4IICA2JQ .
The condition is that, start Jenkins with this command: java -jar jenkins.war --argumentsRealm.passwd.admin=admin --argumentsRealm.roles.admin=admin
Go to Configure Global Security
-> Access Control
Then select Delegate to servlet container