我使用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"
但我已經得到了同樣的錯誤。