Using YAML to Configure a Gradle Build
1 2 3 4 5 6 7 8 9 10 11 12 |
version: 2.0 # The value must be 2.0.
steps:
BUILD:
- gradle:
inputs:
gradle: 4.8
jdk: 1.8
command: |
# 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 build --init-script ./.codeci/.gradle/init_template.gradle -Dorg.gradle.daemon=false -Dorg.gradle.internal.http.connectionTimeout=800000
|
Parameter |
Type |
Description |
Mandatory |
Default Value |
---|---|---|---|---|
command |
string |
Execute commands. |
Yes |
None |
gradle |
string |
Gradle version. |
Yes |
None |
jdk |
string |
JDK version. |
Yes |
None |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.