Remote Debug Teamcity from Intellji

I have gradle project which I want to remotely debug in Teamcity. This gradle project is ui automation for an application.
I m using Intellji 14.1.7 & Teamcity 9.x .I have manually downloaded and installed TeamcityIntegration plugin.
I have TeamCity job with mutiple build steps. One of them is "Gradle runner type"(to build and run my groovy code).Using Gradle build step the tests are
executed successfully.

I added another build step "IntelliJ IDEA Project" as Runner Type for the same Job as a First Build Step.
Given JVM command line parameter:"-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=****" and my Run configuration.
I haven't added "Path to the project". As per the comments it is mentioned to add ".idea" as path of the project, but my teamcity agent or my vcs don't have the .idea folder.

In IntelliJ IDEA,I added a run configuration :Application -> Intellji Project Build configuration and shared the same.
Given VM options:"-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=****".
Remote run with my local changes is running successfully in the Teamcity agent.
But Remote debug is failing while building IntelliJ IDEA Project build step in the job in Teamcity with the below error
"Cannot find IntelliJ IDEA project files by specified path: "."Step IntelliJ IDEA Project failed with unexpected error"
What should be given as the Path to the project in the "IntelliJ IDEA Project" as Runner Type build step ?
Where to give the compile and run command (which is a Gradle Task)?
In IDEA Runconfiguration or
In IntelliJ IDEA Project Build Step

What should the correct Run/Debug configurations for the my project to run the groovy files

1 comment
Comment actions Permalink

Hi Tselvibabu,

Checking the .idea folder into your VCS should fix the error you are seeing. Other than that, your settings seem to be ok.

0

Please sign in to leave a comment.