Hi Ashish,
Assuming your .sh file is kept in source control, you need to make the
file executable and commit that change to your source control system. Or
you could just add the command "chmod +x <filename>.sh" before running
the script.
Regards,
Eric
On 5/8/2015 12:24 PM, Ashish Yadav wrote:
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/554CE3E3.7090109%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.