Using YAML to Configure an Android Build
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
version: 2.0 # The value must be 2.0.
steps:
BUILD:
- android:
inputs:
gradle: 4.8
jdk: 1.8
ndk: 17
command: |
cat ~/.gradle/init.gradle
cat ~/.gradle/gradle.properties
cat ~/.gradle/init_template.gradle
rm -rf ~/.gradle/init.gradle
rm -rf /home/build/.gradle/init.gradle
# Gradle Wrapper provided by CodeArts and cache are used for acceleration.
cp /cache/android/wrapper/gradle-wrapper.jar ./gradle/wrapper/gradle-wrapper.jar
# Build an unsigned APK.
/bin/bash ./gradlew assembleDebug -Dorg.gradle.daemon=false -d --stacktrace
|
Parameter |
Type |
Description |
Mandatory |
Default Value |
---|---|---|---|---|
command |
string |
Execute commands. |
Yes |
None |
gradle |
string |
Gradle version. |
Yes |
None |
jdk |
string |
JDK version. |
Yes |
None |
ndk |
string |
NDK version. |
Yes |
None |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.