`resources:
When i run this i'm getting the following error.
Backend error: Exit status: 500, message: {"Type":"","Message":"runc exec: exit status 1: exec failed: container_linux.go:348: starting container process caused \"exec: \\\"git-repo/java1.sh\\\": permission denied\"\n","Handle":"","ProcessID":"","Binary":""}
Yes it has execution permission.
I have done that using
Chmod +X java1.sh
On Wed 29 Aug, 2018, 9:12 PM Danilo Sousa, notifications@github.com wrote:
@7thwik https://github.com/7thwik the java1.sh script has execution
permission in the repository?—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/concourse/concourse/issues/2540#issuecomment-416999297,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AoLgw_nU1oK-zB1F1LlEC3uGGTSdPXFDks5uVrZ6gaJpZM4WQ19y
.
Hey @7thwik ,
That doesn't look like an actual Concourse issue.
Did you end up getting it to run at some point with something else? Looking at the repository that you're feeding as an input, it feels to me that java1.sh doesn't really exist (looking at https://github.com/7thwik/Java-Concourse/tree/b0709d7e22045408d6e2134f34ceb659185f8e42), although a java.sh does, so maybe changing java1.sh to java.sh in your pipeline will make it work.
Could you give a try and let us know?
By the way, for other questions regarding configuration, there's a public discord where you can submit your questions and chat w/ others: https://concourse-ci.org/community.html
thx!
Closing due to stale-ness. @7thwik let us know if @cirocosta response was helpful. Also, please feel free to re-open
For anyone else visiting this in the future -- it might be worth changing your equivalent of:
run:
path: git-repo/java1.sh
to this instead:
run:
path: /bin/sh
args: ["git-repo/java1.sh"]
thank you @timbarrass for the answer, this works for me
Most helpful comment
For anyone else visiting this in the future -- it might be worth changing your equivalent of:
run:
path: git-repo/java1.sh
to this instead:
run:
path: /bin/sh
args: ["git-repo/java1.sh"]