From 85b37492a2532bfc44a64059dec39807bd3b7fae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Csongor=20Heged=C3=BCs?= Date: Tue, 10 Oct 2023 15:59:07 +0200 Subject: [PATCH 1/2] Remove caching --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index d93cd7c5f3..253805659b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -33,7 +33,7 @@ pipeline { agent { docker { image 'catrobat/catrobat-paintroid:stable' - args '--device /dev/kvm:/dev/kvm -v /var/local/container_shared/gradle_cache/$EXECUTOR_NUMBER:/home/user/.gradle -m=6.5G' + args '--device /dev/kvm:/dev/kvm -m=6.5G' label 'LimitedEmulator' alwaysPull true } From 2e97446fba2d1291a893fa79641348923fac6b87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Csongor=20Heged=C3=BCs?= Date: Thu, 12 Oct 2023 15:25:21 +0200 Subject: [PATCH 2/2] Disable animations on emulator via adb --- Jenkinsfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 253805659b..bfd7e916a3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -115,6 +115,10 @@ pipeline { stage('Device Tests') { steps { + sh '/home/user/android/sdk/platform-tools/adb start-server' + sh '/home/user/android/sdk/platform-tools/adb shell settings put global window_animation_scale 0 &' + sh '/home/user/android/sdk/platform-tools/adb shell settings put global transition_animation_scale 0 &' + sh '/home/user/android/sdk/platform-tools/adb shell settings put global animator_duration_scale 0 &' sh "echo no | avdmanager create avd --force --name android28 --package 'system-images;android-28;default;x86_64'" sh "/home/user/android/sdk/emulator/emulator -no-window -no-boot-anim -noaudio -avd android28 > /dev/null 2>&1 &" sh './gradlew -PenableCoverage -Pjenkins -Pemulator=android28 -Pci createDebugCoverageReport -i' @@ -122,7 +126,7 @@ pipeline { post { always { sh '/home/user/android/sdk/platform-tools/adb logcat -d > logcat.txt' - sh './gradlew stopEmulator' + sh '/home/user/android/sdk/platform-tools/adb kill-server' junitAndCoverage "$reports/coverage/debug/report.xml", 'device', javaSrc archiveArtifacts 'logcat.txt' }