Can we use wildcards with "Android Emulator Plugin" on jenkins server?

79 Views Asked by At

I am trying to install and run my apk on emulator with help of Android Emulator Plugin on Jenkins CI, but I am unable to use wildcards, since I rename my apk file with the flavour name, build number and build date. Is there a way to make things work out?

1

There are 1 best solutions below

0
Christopher Orr On

Looking at the source code, it seems that the Install APK step doesn't support wildcards.

In that case you could first copy the APK to a known path (e.g. in an Execute Shell step).

e.g.

shopt -s globstar
cp **/app/**/*.apk app.apk
cp **/test/**/*.apk test.apk