-
Notifications
You must be signed in to change notification settings - Fork 240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use jenkins crediential plugin api #162
Comments
I tried the method to create crediential as the post gave , but it doesnot work.
Jenkins ver. 1.550 |
@wulonghui I haven't tried the Jenkins credentials plugin API yet. I'll let you know what I find. |
@arangamani Thanks in advance |
I'm also looking for a way to create a new credential via the REST API (or even the cli). It looks like it should be somewhere in https://github.com/jenkinsci/credentials-plugin/ but I'm not familiar enough with jenkins to figure it out. http://stackoverflow.com/questions/29616660/how-to-create-jenkins-credentials-via-the-rest-api |
I am looking for the same @dachary , let me know if you have figured out this. |
@wulonghui Hitting an endpoint that actually exists may help. |
@rG8KDQ5YXlJ7fcE80CLmNx Thanks |
Try this: curl -X POST 'http://user:token@jenkins_server:8080/credentials/store/system/domain/_/createCredentials' |
I am having the same issue but just trying to do it bash, it will not accept my privateKey value.
How are you formatting the private key inside its value? |
There is a problem with SSH private_key direct posting. when i post it with ssh private key, it is removing "+" sign from the content. Am using ansible for this.
This is removing + sign which in the private key. also if you read the key from any variable, it is adding 'u[ private key]' |
@gogskrish You should urlencode the key contents |
Does jenkins crediential plugin support restapi , how to create credientials by ruby client?
Any example?
The text was updated successfully, but these errors were encountered: