jenkins-zh / jenkins-cli

Jenkins CLI allows you to manage your Jenkins in an easy way. Jenkins 命令行客户端
http://www.jenkins-zh.cn/jenkins-cli/
MIT License
389 stars 78 forks source link

user的create、delete、token不好用,具体报错信息如下 #91

Open Queening-road opened 5 years ago

Queening-road commented 5 years ago

jcli的版本为:v0.0.16 image image image

LinuxSuRen commented 5 years ago

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>
yJunS commented 5 years ago

How to show this error?

LinuxSuRen commented 5 years ago

Just execute commad jcli user create abc

yJunS commented 5 years ago

Unable to reproduce this scene

On Mon, Oct 7, 2019 at 8:32 AM Zhao Xiaojie notifications@github.com 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 .

yJunS commented 5 years ago

Don't have any preset scenes?

On Mon, Oct 7, 2019 at 8:34 AM YanJun Shi siiyanjun@gmail.com wrote:

Unable to reproduce this scene

On Mon, Oct 7, 2019 at 8:32 AM Zhao Xiaojie notifications@github.com 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 .

LinuxSuRen commented 5 years ago

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