/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 in Jenkins by santosh
• 120 points
109 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 by MD
• 24,500 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 by akhtar
• 11,270 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
16,722 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
• 51,850 points
963 views
+1 vote
2 answers

What possible return values are there in Jenkins plugin “Sonarqube scanner”

Use Webhooks in SonarQube Administration setup to ...READ MORE

answered Aug 3, 2018 in Jenkins by Nilesh
• 6,960 points
2,453 views
0 votes
1 answer

How can I create global macros and templates in jenkins job builder?

you can append the path to the ...READ MORE

answered Apr 2, 2018 in Jenkins by ajs3033
• 7,280 points
494 views
+13 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,420 points
499 views
0 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 in Jenkins by MD
• 24,500 points
262 views