Run job under different credentials

33 views
Skip to first unread message

Aharon Twizer

unread,
May 7, 2013, 2:06:25 AM5/7/13
to jenkins...@googlegroups.com
Hi Guys,

I'm trying to deploy my job artifacts to my Prod environment (All windows servers).

The problem is that my Jenkins servers lays in one domain any my prod servers are in a different one, so I must supply credentials for the deploy process.

How can I run specific job(The one that deploys to Prod) under different user so the copy will be successful?

By the way I'm using proj script to copy the artifacts.

Thanks,

Sami Tikka

unread,
May 12, 2013, 5:05:04 PM5/12/13
to jenkins...@googlegroups.com
Use sudo or set up a dedicated slave for this job running in the same host running as the deploy user. I myself would use sudo because it allows better control on what exactly Jenkins can execute as the deploy user.

-- Sami
--
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-use...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply all
Reply to author
Forward
0 new messages