我使用Jenkins
版本2.7.20(安装在某些Linux机器上)。 我想删除一个用户使用我的Windows机器(这是在同一网络)的一些API。Jenkins:使用api删除用户
我试过这个命令来获取证书的详细信息我的用户user1
:
E:\>java -jar jenkins-cli.jar -s http://myjenkinsserver:6060 get-credentials-as-xml "user1" --username "adminUserID" --password "adminPasswd"
但我得到这个错误:
ERROR: Malformed store identifier, expecting Provider::Resolver::ContextPath got
user1
java -jar jenkins-cli.jar get-credentials-as-xml STORE DOMAIN CREDENTIAL [--user
name VAL] [--password VAL] [--password-file VAL]
Get a Credentials as XML (secrets redacted)
STORE : Store Id
DOMAIN : Domain Name
CREDENTIAL : Credential Id
--username VAL : User name to authenticate yourself to Jenkins
--password VAL : Password for authentication. Note that passing a
password in arguments is insecure.
--password-file VAL : File that contains the password
- 我如何获得
Store Id
和Domain Name
为user1
? - 如何在
Jenkins
安装上找到我的密码文件路径?
我试图删除使用的凭据:
E:\> java -jar jenkins-cli.jar -s http://myjenkinsserver:6060 delete-credentials "user1" --username "adminUserID" --password "adminPasswd"
但我已经得到了同样的错误。