TeamCity command line permission denied

I put up a stray box with the team. Everything works, but when I add a command line build step that contains "drush cc all", I get this error:

The process cannot start: the program "/ vagrant / public / TeamCity / buildAgent / temp / agentTmp / custom_script1106304414420673073" (in the directory "/ vagrant / public / dev") cannot be started: java.io.IOException: error = 13, Permission denied

+4
source share
1 answer

This is a permissions error that can be fixed using update mode on github. I assume that your files were created using 100644 by default, but for the command to be executed in the city they must have 100755. Do the following in a directory using a script:

$ git update-index --add --chmod=+x your-script-file

$ git commit -m "update mode"

$ git push
+2
source

All Articles