Teamcity 2017.2.4 docker shell script return gradlew syntax error
after update 2017.2.3 to 2017.2.4 teamcity return:
/storage/TeamCity/buildAgent/work/ffc8c360b7590709/gradlew: 158: /storage/TeamCity/buildAgent/work/ffc8c360b7590709/gradlew: Syntax error: "(" unexpected
task use gradle wrapper & run step within Docker container
how fix it?
Please sign in to leave a comment.
change container sh from dash to bash. work fine
haven`t param to change shell to start script inside in a Docker container?
Hi George,
I'm afraid I don't really understand what the problem is (or if you fixed it) could you please expand a bit on the problem?
As a dirty hack - add `RUN cp /bin/bash /bin/sh` to your Dockerfile for the image you build in. That'd fix it.
That's what George meant, I suppose.