Using unix groups looks like the correct approach here. I gave a try. It
woks fine. Thanks.
Now, since I maintain a centralized jenkins instance that are used by
different groups and want to run the test cases as application user(u2, u3,
...) rather than jenkins runtime user (u1). Is there a wa
access to u1.
Does that no accomplish what you require?
/James
From: jenkinsci-users@googlegroups.com
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of varun srivastava
Sent: 03 July 2014 14:20
To: jenkinsci-users@googlegroups.com
Subject: Re: Running test cases as different user in Jenkins
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 07/03/2014 02:23 PM, varun srivastava wrote:
Not really a jenkins question. More like a generic Unix question:
"How to share certain directories or files between different users,
where each user shall be able to write/delete"
Solution:
That's wha
My Jenkins instance is running as u1. Launching a slave as u2 might require
some permission to u1. I can get only restricted set of permission for u1
to do anything as u2.
I launch my slave using following unix command
ssh hostname java -jar /data/jenkins/slave.jar
If u1 is granted permission to
Maybe I stated poorly what I was suggesting.
Don't allow u1 to sudo to u2 and don't allow u2 to sudo to u1. Create two
separate jobs, one that runs as user u1 on the slave that is running as u1,
and the other that runs as user u2 on the slave running as u2. Use "copy
artifacts" or a similar tech
Thanks Mark,
But running the slave node as u2 would mean that u1 can run any command as
u2 (equivalent to giving complete sudo permission for u2). I have
restriction that u1 can sudo as u2 only for running test command/script.
On Thu, Jul 3, 2014 at 6:23 PM, Mark Waite
wrote:
> Could you chang
Could you change the requirements a little to simplify?
For example, what if you had a slave that was running as user "u2" and
performed all its work as user "u2". It could copy the build results from
the job which had been performed as user "u1", then execute the tests as
user "u2".
Mark Waite