-
Notifications
You must be signed in to change notification settings - Fork 62
/
Jenkinsfile.tag
50 lines (41 loc) · 1.52 KB
/
Jenkinsfile.tag
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
#!/usr/bin/env groovy
def projectProperties = [
[$class: 'PipelineTriggersJobProperty', triggers: [
[$class: 'GitHubPushTrigger']
]],
[$class: 'DisableConcurrentBuildsJobProperty'],
]
properties(projectProperties)
node ('android-slave') {
stage('Preparation') {
step([$class: 'WsCleanup'])
checkout scm
}
def common = load 'Jenkinsfile.groovy'
stage('Assemble') {
withCredentials([
[$class: 'FileBinding', credentialsId: 'android-keystore-tvheadend', variable: 'ANDROID_KEYSTORE'],
[$class: 'StringBinding', credentialsId: 'android-keystore-tvheadend-password', variable: 'ANDROID_KEYSTORE_PASSWORD'],
[$class: 'StringBinding', credentialsId: 'acra-report-uri-tvheadend', variable: 'ACRA_REPORT_URI'],
]) {
writeFile file: 'local-tvheadend.properties', text: "ie.macinnes.tvheadend.acraReportUri=$ACRA_REPORT_URI\nie.macinnes.tvheadend.keystoreFile=$ANDROID_KEYSTORE\nie.macinnes.tvheadend.keystorePassword=$ANDROID_KEYSTORE_PASSWORD\nie.macinnes.tvheadend.keyAlias=Kiall Mac Innes\nie.macinnes.tvheadend.keyPassword=$ANDROID_KEYSTORE_PASSWORD\n"
common.assemble()
}
}
stage('Lint') {
common.lint()
}
stage('Archive APK') {
common.archive()
}
stage('Publish') {
parallel (
playStore: {
common.publishApkToStore('beta')
},
githubRelease: {
common.publishApkToGitHub()
}
)
}
}