On Fri 21 Jul 2017 at 17:20, Gregory Edigarov <gregory.ediga...@gmail.com>
wrote:

> Hello, list.
>
> In one of my servers I have a hundred of sites, updates of them maintained
> via jenkins.
> now I want to change configuration of the server so that sites will belong
> each to its own user, and
> only this user will have permissions to write the files. permissions will
> be: site:site, 755 on dirs, 644 on files.
>
> i know that jenkins can handle this via ssh credentials plugin. what I do
> not want is to add the
> credentials manually, because this is error prone. therefore I am looking
> for a way to either add credentials with ssh keys programmatically
>  or, generate ssh keys directly from jenkins. is this possible?
> also, whatever way you can advice for me to accomplish task.
>

You could script creating that actual keys with ssh-keygen and then use
either the credentials plugin's REST api or CLI api to add them to Jenkins.

Have a look in the docs folder of
https://github.com/jenkinsci/credentials-plugin for the (still in progress)
user guide


>
> thank you.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/b8785aa7-364c-4608-b200-81f2673f7f24%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/b8785aa7-364c-4608-b200-81f2673f7f24%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Sent from my phone

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CA%2BnPnMw%2Bfi%2B8efRcXqy6z6CiEkv%3DU2WaRNmrM-8ioHwe5SQ54A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to