Skip to content

Commit

Permalink
build(jenkins): direct adb commands to emulator specifically
Browse files Browse the repository at this point in the history
  • Loading branch information
sgtcoolguy committed May 14, 2019
1 parent 16150e0 commit add03e4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -97,20 +97,20 @@ def unitTests(os, nodeVersion, npmVersion, testSuiteBranch) {
sh 'rm -f mocha_*.crash'
} else {
// gather crash reports/tombstones for Android
sh 'adb pull /data/tombstones'
sh 'adb -e pull /data/tombstones'
archiveArtifacts 'tombstones/'
sh 'rm -f tombstones/'
// wipe tombstones and re-build dir with proper permissions/ownership on emulator
sh 'adb shell rm -rf /data/tombstones'
sh 'adb shell mkdir -m 771 /data/tombstones'
sh 'adb shell chown system:system /data/tombstones'
sh 'adb -e shell rm -rf /data/tombstones'
sh 'adb -e shell mkdir -m 771 /data/tombstones'
sh 'adb -e shell chown system:system /data/tombstones'
}
throw e
} finally {
// Kill the emulators!
if ('android'.equals(os)) {
sh 'adb shell am force-stop com.appcelerator.testApp.testing'
sh 'adb uninstall com.appcelerator.testApp.testing'
sh 'adb -e shell am force-stop com.appcelerator.testApp.testing'
sh 'adb -e uninstall com.appcelerator.testApp.testing'
killAndroidEmulators()
} // if
} // finally
Expand Down

0 comments on commit add03e4

Please sign in to comment.