0

I'm setting up a Jenkins job in order to run adb monkey on my app. I run the following command:

adb  shell monkey -p nl.tmg.telegraaf -v 500

In some cases it succeeds and sometimes it fails. However, the exit code is always 0. Hence jenkins treats it as a successful job. Anybody know how this can be prevented?

Nasir
  • 1,982
  • 4
  • 19
  • 35

1 Answers1

0

You could use the Android Emulator Plugin for Jenkins, which can run Monkey for you, parse the output, and change the build result accordingly.

Christopher Orr
  • 110,418
  • 27
  • 198
  • 193