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
1,626 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,360 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,230 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
40,469 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,350 points
4,110 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
3,206 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 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
1,761 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,360 points
1,457 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 7, 2020 in Jenkins by MD
• 95,360 points
1,574 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP