-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathJenkinsfile
More file actions
39 lines (33 loc) · 1.09 KB
/
Jenkinsfile
File metadata and controls
39 lines (33 loc) · 1.09 KB
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
pipeline {
agent any
environment {
BINTRAY_USER = credentials('bintrayUser')
BINTRAY_API_KEY = credentials('bintrayApiKey')
}
stages {
stage('Checkout') {
steps {
checkout scm
}
}
stage('Build') {
steps {
sh "./gradlew clean assemble"
}
}
stage('Check') {
steps {
sh "./gradlew detekt check ktlintCheck jacocoTestReport"
}
}
stage('Report') {
steps {
recordIssues healthy: 2, unhealthy: 3, tool: androidLintParser(pattern: '**/reports/**/lint-results.xml', reportEncoding: 'UTF-8')
recordIssues tool: detekt(pattern: '**/reports/**/detekt.xml', reportEncoding: 'UTF-8')
recordIssues tool: ktLint(pattern: '**/reports/**/ktlint*.xml', reportEncoding: 'UTF-8')
junit allowEmptyResults: true, testResults: '**/build/test-results/**/*.xml'
publishCoverage adapters: [jacocoAdapter('**/build/reports/jacoco/**/*.xml')], sourceFileResolver: sourceFiles('STORE_ALL_BUILD')
}
}
}
}