[ 
https://issues.jenkins-ci.org/browse/JENKINS-12821?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=159213#comment-159213
 ] 

Richard Mortimer commented on JENKINS-12821:
--------------------------------------------

I suspect this may be due to the android-emulator-plugin starting a new ADB 
instance for each running job. This means that the android-maven-plugin may not 
find the ADB instance that contains the emulator.

I have had a niggling suspicion that this may be the case for a while because I 
have seen matrix based testing fail at times and I suspect this happens when 
two emulators/ADB are running on the same slave at once.

It may be that android-maven-plugin never finds a second ADB instance running 
on a non-standard port and hence if there is any other (non-Jenkins related) 
ADB hanging around things will fail.

You may find that adding
{code}
-Dandroid.device=${ANDROID_AVD_DEVICE}
{code}
to the jobs maven goals and options configuration will fix it (this specifies 
the exact emulator device to use). However I suspect that may fail if my 
hypothesis about my matrix build failures is correct.

                
> android.device 
> ---------------
>
>                 Key: JENKINS-12821
>                 URL: https://issues.jenkins-ci.org/browse/JENKINS-12821
>             Project: Jenkins
>          Issue Type: Bug
>          Components: android-emulator
>    Affects Versions: current
>            Reporter: Sebastian Schefczyk
>            Assignee: Christopher Orr
>            Priority: Minor
>
> The following configuration of the android-maven-plugin will not find the 
> running emulator on Jenkins.
> Commenting this line will find the emulator.
> On my local machine this is working fine, but not in Jenkins.
> Both machines use maven 3.0.4 on Linux/Ubuntu.
> <groupId>com.jayway.maven.plugins.android.generation2</groupId>
> <artifactId>android-maven-plugin</artifactId>
> <configuration>
>    ...
>   <device>emulator</device>
>    ...
> </configuration>
> </plugin>
> This configuration is useful on the local machine, if you are developing 
> while charging your phone via USB.
> Best regards, that's a really nice plugin!
>  Sebl29

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to