Hi,

I have a centralized jenkins setup run as user u1. Different projects are 
set up on this instance. For running some testcases in some project, 
application user u2 permission is required. So I have granted permission to 
u1 to sudo as u2 only for running the test script/command. For example u1 
can sudo -u u2 run_test.sh
Now the problem is that the workspace is checked out as u1 but the test 
output files are generated with owner as u2. So I am not able to clean up 
the workspace as it contains files owned by both u1 and u2 and my cleanup 
plugin is run as u1.

Does any one has any solution for setting this up or do we have a plugin 
that can clean up the workspace as different user.

Summarizing the requirement :

1. Run jenkins as u1
2. Checkout and build project as u1.
3. Run test cases as u2. Note that u1 will have permission to sudo as u2 
only for running restricted set of commands.
4. Able to clean up the workspace post build properly (that may contain 
files owned by both u1 and u2)

Thanks,
Varun

-- 
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/d/optout.

Reply via email to