forked from dOpensource/dsiprouter
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile.common
More file actions
18 lines (15 loc) · 848 Bytes
/
Jenkinsfile.common
File metadata and controls
18 lines (15 loc) · 848 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
gitlabBuilds(builds: ['build', 'test', 'artifacts']) {
stage('build') { gitlabCommitStatus(name: 'build') {
sh "./gradlew --no-daemon clean build"
}}
stage('test') { gitlabCommitStatus(name: 'test') {
sh "./gradlew --no-daemon check"
}}
stage('artifacts') { gitlabCommitStatus(name: 'artifacts') {
archiveArtifacts artifacts: '**/build/libs/*.jar', fingerprint: true, onlyIfSuccessful: true
step([$class: 'JavadocArchiver', javadocDir: 'thrifty-compiler/build/docs/javadoc/', keepAll: false])
step([$class: 'JavadocArchiver', javadocDir: 'thrifty-schema/build/docs/javadoc/', keepAll: false])
step([$class: 'JavadocArchiver', javadocDir: 'thrifty-java-codegen/build/docs/javadoc/', keepAll: false])
step([$class: 'JavadocArchiver', javadocDir: 'thrifty-runtime/build/docs/javadoc/', keepAll: false])
}}
}