forked from Alfresco/alfresco-android-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
55 lines (51 loc) · 1.43 KB
/
azure-pipelines.yml
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
trigger:
- master
pr: none
pool:
vmImage: 'macos-latest'
variables:
- group: nexus-credentials
- group: source-clear-credentials
- group: android-signing
- name: version_code
value: $[counter('versionCode', 399)]
steps:
- task: DownloadSecureFile@1
name: keystore
inputs:
secureFile: alfresco-android-mobile-keystore
- task: DownloadSecureFile@1
name: google_services
inputs:
secureFile: google-services-acs.json
- task: Gradle@2
inputs:
workingDirectory: ''
gradleWrapperFile: 'gradlew'
gradleOptions: '-Xmx3072m'
publishJUnitResults: false
testResultsFiles: '**/TEST-*.xml'
tasks: 'assembleStoreRelease'
env:
NEXUS_USERNAME: $(nexus_username)
NEXUS_PASSWORD: $(nexus_password)
KEYSTORE_FILE: $(keystore.secureFilePath)
KEYSTORE_PASSWORD: $(keystore_password)
KEY_ALIAS: $(key_alias)
KEY_PASSWORD: $(key_password)
GOOGLE_SERVICES_FILE: $(google_services.secureFilePath)
- bash: |
curl -sSL https://download.sourceclear.com/ci.sh | sh
displayName: 'SourceClearCheck'
env:
SRCCLR_API_TOKEN: $(source_clear_token)
- task: CopyFiles@2
inputs:
contents: '**/*.apk'
targetFolder: '$(build.artifactStagingDirectory)'
- task: PublishBuildArtifacts@1
- task: GooglePlayRelease@3
inputs:
apkFile: '**/*.apk'
serviceEndpoint: 'Play Store Publisher'
track: 'internal'