Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jenkins slave runs as user

I have a jenkins setup with multiple users which are logging in with Active Directory plugin. This is useful so that each user can access his own tasks.

However each user also has different permissions on the local network, such as access to different folders etc. I have noticed that the permissions given to each task is not linked to the user but to the account under which the slave is running as service. Is there a way to change that so that the task is executed on the slave under the credential (and hence permissions) of the user?

Thank you

like image 268
RockScience Avatar asked Jun 09 '17 08:06

RockScience


People also ask

How do I run a Jenkins job as a specific user?

To run a job by a specific user, you have to enable security options in jenkins. May be you have not used the enable security options in Jenkins and that is why it says started by anonymous user. You can create any number of users in Jenkins by providing their credentials.

How do you check if Jenkins slave is running?

Basic usage. Visit a url like http:``//myslave:3141 to see whether a slave is running and how much memory it is using. Configure the port used by clicking Manage Jenkins on the dashboard.

How many ways we can connect slave in Jenkins?

There are two ways of authentication for setting up the Linux Jenkins slave agents.


1 Answers

you can partially fix your problem this way:

  • install the slave as a service using the Java Web Start method and JLNP
  • go to Services control panel in windows
  • under Properties -> Connection replace the local system connection with a specific user
  • rebooted the service

This at least gives you the ability to use one account instead of system.

like image 61
user2394648 Avatar answered Nov 13 '22 02:11

user2394648