jenkins创建用户和token

echo 'jenkins.model.Jenkins.instance.securityRealm.createAccount("user1", "password123")' | java -jar jenkins-cli.jar -s http://127.0.0.1:8080/ groovy =
curl -X POST 'http://127.0.0.1:8080/me/descriptorByName/jenkins.security.ApiTokenProperty/generateNewToken' --data 'newTokenName=foo'  --user 'user1:password123'

~                         

你可能感兴趣的:(linux,jenkins)