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?

0
3 comments
Avatar
Permanently deleted user

change container sh from dash to bash. work fine

haven`t param to change shell to start script inside in a Docker container?

0

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?

0
Avatar
Permanently deleted user

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.

0

Please sign in to leave a comment.