Pankaj,

I was able to do that today.
My jenkins run under tomcat6 account I configured it to run a bash script 
using
sudo -u ubuntu /opt/script

NOTE: inside the script debug it using whoami and env 
I had problems with enviroment, I got the home folder from tomcat user

The next step is to configure the sudoers /etc/sudoers to allow user 
tomcat6 to run with ubuntu account


#JENKINS USER
Defaults:tomcat6 !requiretty
tomcat6 ALL=(ALL)  NOPASSWD: /opt/deploy


Did it work for you?


Em quinta-feira, 12 de dezembro de 2013 01h00min29s UTC-2, Pankaj Gupta 
escreveu:
>
> 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.

Reply via email to