tmp jenkins7925067706776714433 sh deploy Permission denied in jenkins

0 votes
Hi,

I am getting this error "/tmp/jenkins7925067706776714433.sh: ./deploy: Permission denied' when i build the job in jenkins which should perform ssh in to another deploment server
Mar 31, 2020 in Jenkins by santosh
• 120 points
794 views

2 answers to this question.

0 votes

Hi@santosh,

As it is showing permission denied means you have to give sudo access to jenkins.

$ sudo -l -u jenkins

Hope this will work.

Thank You

answered Mar 31, 2020 by MD
• 95,040 points
0 votes

To avoid this error, You should add sudo access to jenkins.

  • open /etc/sudoers file.

  • Add/Modify jenkins user

jenkins ALL=(ALL) NOPASSWD: ALL
answered Mar 31, 2020 by akhtar
• 38,170 points

Related Questions In Jenkins

+2 votes
3 answers

Permission denied error while running a simple job in Jenkins

Hey @Hannah, try changing the permissions using ...READ MORE

answered Oct 25, 2018 in Jenkins by krishti
26,248 views
0 votes
1 answer

Jenkins cannot open directory Permission denied

Try whoami command to find out which ...READ MORE

answered Aug 8, 2018 in Jenkins by Kalgi
• 52,310 points
1,911 views
0 votes
1 answer

How to deploy the war file in Tomcat Server with Jenkins pipeline job on an windows machine?

Use deploy to container plugin. Go to the ...READ MORE

answered Sep 30, 2020 in Jenkins by Adil Abdullah Khan
1,188 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
967 views
+2 votes
1 answer
0 votes
1 answer

/tmp/jenkins6403305246799294208.sh: line 2: cd: /root: Permission denied

Hi@akhtar, You are getting permission denied because you ...READ MORE

answered Feb 6, 2020 in Jenkins by MD
• 95,040 points
757 views
0 votes
1 answer

Access Denied user is missing the Job/Create permission in Jenkins.

Hi@akhtar, The user doesn't have sufficient permission to ...READ MORE

answered Dec 6, 2020 in Jenkins by MD
• 95,040 points
128 views