When I need to run a job as a specific user, I configure a slave agent to run as that user, then tie the jobs to that slave agent.
That avoids changing user within the job and lets Jenkins manage the work. Mark Waite On Dec 11, 2013 8:00 PM, "Pankaj Gupta" <contact.gpan...@gmail.com> wrote: > Hi, > > I'm new to this group. I have been using Jenkins from last few months and > still learning. I have a requirement to launch a build/test as a particular > user id instead of the process as which Jenkins is running. I tried > configuring node and added ssh keys of user but jenkins keep on trying (for > hours) and at last i found Jenkins process display a message "Out of > Memory". > > I'm running Jenkins process on a linux machine. Please share what everyone > else do to run a job as different user. What are the best practices and > where i would have missed. > > Thanks for guiding. > > -Pankaj > > -- > 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. > For more options, visit https://groups.google.com/groups/opt_out. > -- 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. For more options, visit https://groups.google.com/groups/opt_out.