-
Notifications
You must be signed in to change notification settings - Fork 3
/
Jenkinsfile
71 lines (51 loc) · 1.89 KB
/
Jenkinsfile
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/usr/bin/env groovy
pipeline {
options { buildDiscarder(logRotator(numToKeepStr: '10')) }
agent {
label 'map-jenkins'
}
stages {
stage('Init') {
steps {
echo "NODE_NAME = ${env.NODE_NAME}"
}
}
stage('Sloccount') {
steps {
sh "cloc --by-file --xml --out=cloc.xml src"
sloccountPublish pattern: 'cloc.xml'
}
}
stage('Build and Test') {
steps {
wrap([$class: 'Xvfb']) {
timestamps {
sh "./continuous_integration/standard_build"
}
}
}
}
} // stages
post {
always {
//archiveArtifacts artifacts: ''
openTasks defaultEncoding: '', excludePattern: '', healthy: '', high: 'FIXME,HACK', low: '', normal: 'TODO', pattern: '**/*.java,**/*.sh,**/*.py', unHealthy: ''
warnings categoriesPattern: '', consoleParsers: [[parserName: 'Java Compiler (javac)']], defaultEncoding: '', excludePattern: '', healthy: '', includePattern: '', messagesPattern: '', unHealthy: ''
findbugs pattern: '**/build/reports/findbugs/*.xml', unstableTotalAll: '0'
checkstyle pattern: '**/build/reports/checkstyle/*.xml', unstableTotalAll: '0'
junit "**/build/test-results/**/*.xml"
emailext recipientProviders: [[$class: 'DevelopersRecipientProvider'], [$class: 'CulpritsRecipientProvider']],
to: 'map-bbn-commits@rlist.app.ray.com',
subject: '$DEFAULT_SUBJECT',
body: '''${PROJECT_NAME} - Build # ${BUILD_NUMBER} - ${BUILD_STATUS}
Changes:
${CHANGES}
Failed Tests:
${FAILED_TESTS, onlyRegressions=false}
Check console output at ${BUILD_URL} to view the full results.
Tail of Log:
${BUILD_LOG, maxLines=50}
'''
} // always
} // post
} // pipeline