How to give sudo power to the Jenkins user?

0 votes

Hi Guys,

I am trying to run one script from Jenkins. But Jenkins user doesn't have admin power to run the script. How can I give Sudo power to the Jenkins user?

Oct 25 in Jenkins by akhtar
• 32,960 points
13 views

1 answer to this question.

0 votes

Hi@akhtar,

You need to give Sudo power to Jenkins user in /etc/sudoers file. This file is used to give power to a user.

jenkins ALL = NOPASSWD: /path/to/script
answered Oct 25 by MD
• 77,580 points

Related Questions In Jenkins

+1 vote
0 answers

How to change the jenkins job status manually ( user interaction ) ?

I have 7 freestyle jobs (A,B,C,D,E,F,G) in ...READ MORE

Jul 24, 2019 in Jenkins by Veeranji
• 130 points
1,794 views
0 votes
1 answer

How can I enable jenkins to execute the shell commands as sudo or root?

Hey,  Create a freestyle project on Jenkins Use the ...READ MORE

answered Oct 23 in Jenkins by Hana
97 views
0 votes
1 answer

How do I pass value from my Fake # script to the host build server (Jenkins)

You can use the EnvInject plugin to pass environment ...READ MORE

answered Jul 11, 2018 in Jenkins by Kalgi
• 2,620 points
384 views
0 votes
3 answers

How to get the Maven Version of a project in Jenkins?

Here is a snippet from our Jenkins ...READ MORE

answered Oct 4, 2019 in Jenkins by Petr Doležal
8,514 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
803 views
+2 votes
1 answer
0 votes
1 answer

How to give permissions to jenkins user for a particular file?

Hi@akhtar, To give permissions to jenkins user, you ...READ MORE

answered Feb 14 in Jenkins by MD
• 77,580 points
1,033 views
0 votes
1 answer

How to change the default Jenkins port in Windows?

Hi@akhtar, Yes, you can change Jenkins port no. ...READ MORE

answered Jun 3 in Jenkins by MD
• 77,580 points
6,502 views