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

Creating credential domains and credentials

Open bdhoine opened this issue 4 years ago • 4 comments

I would like to contribute to have the possibility to create credentials domains with a specific scope and to create credentials (like username-password). Would that fit in this plugin? I want to make sure that it will be considered as a feature before starting development.

bdhoine avatar Mar 31 '20 22:03 bdhoine

It's fine as long as there is a dedicated api for it. Do you have any examples of other clients implementing it?

silas avatar Apr 01 '20 16:04 silas

I did not find any good clients or examples but the docs are very good and also describe a REST API. The examples that you find online usually are nit future proof because they use the forms and not the REST API's. I will base my work on https://github.com/jenkinsci/credentials-plugin/blob/master/docs/user.adoc#managing-an-existing-credentials-instance

bdhoine avatar Apr 01 '20 20:04 bdhoine

Just something to keep in mind is that the credentials REST API changed from the plugins' v1 to v2.

If can help if needed!

markmssd avatar Apr 23 '20 16:04 markmssd

Ok good to know, I based myself on the GitHub docs (so probably only 2.x support) thanks @markmssd! I'm currently wrapping up on the API calls, most of that is finished and the next step is add some tests.

bdhoine avatar Apr 24 '20 21:04 bdhoine