Skip to content
Advertisement

How do you make a Concourse Linux Machine read executable files? (chmod style)

I am trying to get my Concourse CI Linux VM to run a shell script. But i keep getting the same error:

enter image description here

I fixed this locally (non VM, on a Mac) with chmod +x path/filename.sh to make it executable and adding !#/bin/sh to the shell script.

But i dont know how to get Concourse/VM to know that it’s an executable? Is there a chmod command i should put into the task.sh? or the task.yml? Help!

my Concourse CI pipeline.yml

JavaScript

My task.yml:

JavaScript

My task.sh:

JavaScript

I expected this to just echo/log out the string above.

Instead i get the 500/permission denied error at the top.

Advertisement

Answer

The file in the git repo has to be chmod +xed. You’re gonna have a hard time doing that in a Gist, since that can’t be set in the UI.

You could clone the gist, chmod +x, and re-push, or change your task to run bash my-task/task.sh instead, which won’t require it to be executable:

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement