I try to set up a TeamCity build that would compile and run a Android project.
Build is successfull, but when the configuration should be run, it fails saying :
IntelliJ IDEA project does not contain shared run configuration with name "SimpleNrts"
I've looked at documentation, I've checked the "Shared" checkbox in the project, I have the file SimpleNrts\.idea\runConfigurations\SimpleNrts.xml commited in my VCS and it is present on the agent in sources files.
So I'm a bit lost, what am I missing? I didn't see in the log more informations on why this fails.
Thanks for your help,
If you are using teamcity 8.1.x, you can see a suggestion (tree) icon near the configuration name window. Does this configuration appear in the list?
We're using 8.0.3, I guess it is not in that version.
Please attach teamcity-build.log and teamcity-agent.log from agent and teamcity-server.log from server.
I'll do that.
Anyway, tomorrow morning we'll upgrade to TeamCity 8.1, if it goes well, I'll try again and send log files if I still have the issue.
So with TeamCity 8.1.2, I have the target name "SimpleNrts" that shows. So the config is good.
But now I have another error that I didn't have with TeamCity 8.0.3, during project build :
groovy.lang.MissingMethodException: No signature of method: static org.jetbrains.android.util.AndroidCommonUtils.createSdkManager() is applicable for argument types: (java.lang.String, org.jetbrains.android.sdk.MessageBuildingSdkLog) values: [/home/teamcity/android-sdk-linux, org.jetbrains.android.sdk.MessageBuildingSdkLog@d8a125]
It looks like some libraries weren't updated properly. Specifically, TC\webapps\ROOT\WEB-INF\plugins\jps-tool\agent\jps.zip.
For instance, please check the signature of lib\android-jps-plugin.jar (from zip mentioned about) and the same file from buildAgent\tools\jps\lib\android-jps-plugin.jar
We have no difference on the files, agents were updated properly :
/usr/local/cc/jps/lib# md5sum android-jps-plugin.jar
@orphee:~# md5sum /usr/local/teamcity/buildAgent/tools/jps/lib/android-jps-plugin.jar
@castor:~# md5sum /usr/local/teamcity/buildAgent/tools/jps/lib/android-jps-plugin.jar
Can you please attach teamcity-agent.log and teamcity-build.log?
Here are the logs
I can't find the error you mentioned in the build log. Did it happen again after that?
Yes, it happens every build. I'll try on another agent and attach the logs
i've looked in the other agent, there is no trace of the error in the logs
Should I activated detailed log somewhere ?
You can activate detailed logging by editing conf\teamcity-agent-log4j.xml:
I've activated DEBUG logs, (no need to restart the agent, right?), and I don't see the error in the logs...
I attach the logs, maybe you'll see smthg interesting. I've also included the log from TeamCity build view.
It's build #30 (buildId = 49827)
It actually looks like a bug in Idea Project Runner. What if you try a simple test android project and run it on the same agent?
The method it is referencing is from newer version that is bundled into TC 8.1.2. Do you have Idea installed on the same computer as build agent?
I'll try that. But that would be after next week, I'll keep you informed.
I am also stuck with similar issue. Whenever I build my android based Idea project from teamcity's default build agent I get:
groovy.lang.MissingMethodException: No signature of method: static org.jetbrains.android.util.AndroidCommonUtils.createSdkManager() is applicable for argument types: (java.lang.String, org.jetbrains.android.sdk.MessageBuildingSdkLog) values: [/Applications/Android Studio.app/sdk, org.jetbrains.android.sdk.MessageBuildingSdkLog@218c2661]
I am using TeamCity Professional 8.1.2 (build 29993) and Intellij Idea 13.1.2 Build #IC-135.690.
I followed your suggestion and checked for any mismatch in android-jps-plugin.jar files, but they are both same.
I am using the default build agent and both the teamcity server and build agent are on the same system (mac OS X version 10.9.3).
I have my intellij IDE also on the same system and everything works fine if I try to build my android project from the IDE.
But if I try to build the project either directly from teamCity or by selecting 'Remote run in TeamCity' from Intellij Idea IDE, I receive the error mentioned above.
I have attached the teamcity-agent.log and teamcity-build.log files containing detailed logs ("DEBUG").
Please let me know if there is some other information needed to help debug this issue.
The repository which I am trying to build is a minimal test project hosted on github: https://github.com/kunjan-a/teamcityTests
This was fixed in upcoming 8.1.3: http://youtrack.jetbrains.com/issue/TW-36029
With 8.1.3 while I dont face the original issue but now Teamcity is never able to find the run configuration specified in the IDEA project runner.
Interestingly, I am selecting the run configuration from the Teamcity UI itself ( during configuration of IDEA runner in the build step) and the run configuration is always shown there.
My project is directory based i.e. with (.idea folder and not .ipr)
I checked in the checked out folder (/root/teamcity8.1.3/TeamCity/buildAgent/work/alphaBuild) and the run configuration is present under .idea/runConfigurations/
The exact error string being shown by Teamcity is:
I dont face any issues while trying to use the run configuration inside Intellij IDEA (v13.1.2)
I can see I'm not the only one. Is there a bug opened already, or should I open one?
With TeamCity 8.1.3, I have the same issue, not founding the target.
Should I install IDEA on the build agent to make it work?
Actually, please open a new issue at youtrack.jetbrains.com and attach build.log and teamcity-agent.log to it.
I've opened the issue http://youtrack.jetbrains.com/issue/TW-36893
I confirm that the bug is fixed on my side with TeamCity 8.1.3.