Fix jankinsFile

This commit is contained in:
2026-05-02 14:33:59 +03:00
parent 803b6726f2
commit bd55da2f94
Vendored
+9
View File
@@ -1,18 +1,27 @@
pipeline {
agent none
stages {
stage('Build Android APK') {
agent { label 'linux' }
environment {
ANDROID_HOME = '/opt/android-sdk'
ANDROID_SDK_ROOT = '/opt/android-sdk'
PATH = "/opt/android-sdk/cmdline-tools/latest/bin:/opt/android-sdk/platform-tools:${env.PATH}"
}
steps {
cleanWs()
checkout scm
sh '''
chmod +x ./gradlew
./gradlew clean assembleDebug
'''
archiveArtifacts artifacts: '**/build/outputs/apk/**/*.apk', fingerprint: true
}
}
}
}