jenkins-cli icon indicating copy to clipboard operation
jenkins-cli copied to clipboard

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

Open Queening-road opened this issue 5 years ago • 6 comments

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

Queening-road avatar Jul 31 '19 03:07 Queening-road

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>

LinuxSuRen avatar Oct 06 '19 13:10 LinuxSuRen

How to show this error?

yJunS avatar Oct 06 '19 18:10 yJunS

Just execute commad jcli user create abc

LinuxSuRen avatar Oct 07 '19 00:10 LinuxSuRen

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 .

yJunS avatar Oct 07 '19 00:10 yJunS

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 .

yJunS avatar Oct 07 '19 00:10 yJunS

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

LinuxSuRen avatar Oct 07 '19 00:10 LinuxSuRen