Using TeamCity Enterprise 6.5.3 (build 17985)
Not sure if it's supported any more...
Anyway, we've just migrated to Gradle 2.0 and have some issues with Gradle builds.
Apparently TeamCity adds an extra argument "--init-script", which points to the init.gradle file in the agent's plugins/gradle-runner/scripts directory.
After running the builds which were successful on Gradle 1.7, we get the following error:
[16:00:48]: FAILURE: Build failed with an exception.
[16:00:48]: * Where:
[16:00:48]: Initialization script '/sbclocal/data/buildAgents/buildAgent1/plugins/gradle-runner/scripts/init.gradle' line: 97
[16:00:48]: * What went wrong:
[16:00:48]: A problem occurred configuring root project 'gradle-test-unit'.
[16:00:48]: > No such property: teamcity for class: org.gradle.api.internal.project.DefaultProject_Decorated
[16:00:48]: * Try:
[16:00:48]: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
I couldn't find any documentation regarding gradle-runner.
I guess it needs updating to gradle 2.0.
I'm aware that TeamCity, we're using is very old.
Not sure, maybe it would work under more recent version?
Can I somehow update the gradle-runner plugin only if it's available?
Would be most grateful for any help!
Please shout if anything sounds unclear or you need more information to assist.