Ø  . . . but doesn’t have execute permissions . . .

Assuming that the script is running on a unix or linux machine, you should be 
able to run it without execute permission by invoking it as “sh <script>” 
instead of directly.  If your version control is cvs, subversion or a couple of 
others, then this is kind of a well-known problem.  If it is something like 
git, then you should be able to correct the permissions permanently.

Alternatively, just add another step before executing it to fix the permissions.

From: [email protected] 
[mailto:[email protected]] On Behalf Of Ashish Yadav
Sent: May-08-15 12:24
To: [email protected]
Subject: sh file permissions

I am trying to run a job can executes a .sh file and am getting permission 
denied. The file is owned by the jenkins user but doesn’t have execute 
permissions. If I update the file in the job workspace to have execute 
permissions, the file perms get overlaid every time the job the runs. How can 
Jenkins call and execute a .sh file in the workspace?
--
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
[email protected]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/D1724D53.D14A%25ashish.yadav%40firemon.com<https://groups.google.com/d/msgid/jenkinsci-users/D1724D53.D14A%25ashish.yadav%40firemon.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/06b76954bd924ce5b08815abf3b62799%40mbx01colo01p.esentire.local.
For more options, visit https://groups.google.com/d/optout.

Reply via email to