24 Replies Last post: Jun 16, 2014 10:15 AM by Gérald Fauvelle  
Gérald Fauvelle Newbie 94 posts since
May 26, 2009
Currently Being Moderated

May 16, 2014 6:02 PM

TeamCity, IntelliJ IDEA project and shared configurations

Hi,

 

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,


Gerald

Sergey Pak JetBrains 321 posts since
Nov 13, 2013
Currently Being Moderated
May 19, 2014 12:31 PM in response to: Gérald Fauvelle
Re: TeamCity, IntelliJ IDEA project and shared configurations

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?

Sergey Pak JetBrains 321 posts since
Nov 13, 2013
Currently Being Moderated
May 20, 2014 12:21 PM in response to: Gérald Fauvelle
Re: TeamCity, IntelliJ IDEA project and shared configurations

Please attach teamcity-build.log and teamcity-agent.log from agent and teamcity-server.log from server.

Sergey Pak JetBrains 321 posts since
Nov 13, 2013
Currently Being Moderated
May 26, 2014 10:30 AM in response to: Gérald Fauvelle
Re: TeamCity, IntelliJ IDEA project and shared configurations

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

Sergey Pak JetBrains 321 posts since
Nov 13, 2013
Currently Being Moderated
May 26, 2014 11:47 AM in response to: Gérald Fauvelle
Re: TeamCity, IntelliJ IDEA project and shared configurations

Can you please attach teamcity-agent.log and teamcity-build.log?

Sergey Pak JetBrains 321 posts since
Nov 13, 2013
Currently Being Moderated
May 26, 2014 2:06 PM in response to: Gérald Fauvelle
Re: TeamCity, IntelliJ IDEA project and shared configurations

I can't find the error you mentioned in the build log. Did it happen again after that?

Sergey Pak JetBrains 321 posts since
Nov 13, 2013
Currently Being Moderated
May 26, 2014 4:21 PM in response to: Gérald Fauvelle
Re: TeamCity, IntelliJ IDEA project and shared configurations

You can activate detailed logging by editing conf\teamcity-agent-log4j.xml:

 

  <root>

    <priority value="INFO"/>

    <appender-ref ref="CONSOLE-WARN"/>

  </root>

to

  <root>

    <priority value="DEBUG"/>

    <appender-ref ref="CONSOLE-WARN"/>

  </root>

If an error occurs during the build, the information about it should be in teamcity-build.log. Probably, you need to grab logs from another agent.
Sergey Pak JetBrains 321 posts since
Nov 13, 2013
Currently Being Moderated
May 28, 2014 6:50 PM in response to: Gérald Fauvelle
Re: TeamCity, IntelliJ IDEA project and shared configurations

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?

Kunjan Aggarwal Newbie 4 posts since
Apr 2, 2014
Currently Being Moderated
Jun 5, 2014 11:21 AM in response to: Sergey Pak
Re: TeamCity, IntelliJ IDEA project and shared configurations

Hi,

 

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

Attachments:
Sergey Pak JetBrains 321 posts since
Nov 13, 2013
Currently Being Moderated
Jun 5, 2014 3:14 PM in response to: Kunjan Aggarwal
Re: TeamCity, IntelliJ IDEA project and shared configurations

This was fixed in upcoming 8.1.3: http://youtrack.jetbrains.com/issue/TW-36029

Kunjan Aggarwal Newbie 4 posts since
Apr 2, 2014
Currently Being Moderated
Jun 11, 2014 11:37 AM in response to: Sergey Pak
Re: TeamCity, IntelliJ IDEA project and shared configurations

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:

[Step 1/1] Loading project (7s)
[20:01:22][Loading project] IntelliJ IDEA project does not contain shared run configuration with name "alpha"

 

 

I dont face any issues while trying to use the run configuration inside Intellij IDEA (v13.1.2)

Sergey Pak JetBrains 321 posts since
Nov 13, 2013
Currently Being Moderated
Jun 15, 2014 12:34 AM in response to: Gérald Fauvelle
Re: TeamCity, IntelliJ IDEA project and shared configurations

Actually, please open a new issue at youtrack.jetbrains.com and attach build.log and teamcity-agent.log  to it.

More Like This

  • Retrieving data ...