-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathandroid_bitbucket.yml
More file actions
27 lines (27 loc) · 846 Bytes
/
android_bitbucket.yml
File metadata and controls
27 lines (27 loc) · 846 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
---
- job:
name: android_bitbucket_autobuild
project-type: freestyle
description: Automatically build Android APK after every commit on BitBucket repository
scm:
- git:
url: https://bitbucket.org/IJubba/sampleandroid.git
branches:
- master
triggers:
- bitbucket
builders:
- inject:
properties-content: ANDROID_HOME=/opt/android-sdk-linux
- gradle:
wrapper: true
tasks: |
clean
assembleDebug
- shell: "mv app/build/outputs/apk/app-debug.apk app/build/outputs/apk/`date +%Y-%m-%d:%H:%M:%S`_${BUILD_ID}.apk"
# publishers:
# - artifact-deployer:
# entries:
# - files: 'app/build/outputs/apk/*.apk'
# remote: '/builds/sample-app/'
# flatten: true