-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathJenkinsfile
More file actions
30 lines (28 loc) · 790 Bytes
/
Jenkinsfile
File metadata and controls
30 lines (28 loc) · 790 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
28
29
30
library(identifier: 'ableton-utils@0.29', changelog: false)
library(identifier: 'groovylint@0.16', changelog: false)
devToolsProject.run(
defaultBranch: 'main',
test: { data ->
parallel(
groovydoc: {
data['docs'] = groovydoc.generate()
},
groovylint: {
groovylint.check('./Jenkinsfile,./*.gradle,**/*.groovy')
},
junit: {
junitUtils.run(testResults: 'build/test-results/**/*.xml') {
sh './gradlew test --warning-mode fail'
}
},
)
},
publish: { data ->
jupiter.publishDocs("${data['docs']}/", 'Ableton/postgres-pipeline-utils')
},
deploy: { data ->
String versionNumber = readFile('VERSION').trim()
version.tag(versionNumber)
version.forwardMinorBranch(versionNumber)
},
)