-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathJenkinsfile
More file actions
64 lines (48 loc) · 1.23 KB
/
Jenkinsfile
File metadata and controls
64 lines (48 loc) · 1.23 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
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
#!/usr/bin/env groovy
pipeline {
options { buildDiscarder(logRotator(numToKeepStr: '5')) }
agent { label 'linux'}
stages {
stage('Build') { // Setup dependencies
steps {
echo "NODE_NAME = ${env.NODE_NAME}"
// Get the test repo and ensure it's setup
dir('testRepo') {
git url: 'git@superior.bbn.com:ELM-test'
sh '#!/bin/sh -xe\n make'
}
}
}
stage('Test') {
steps {
echo "Beginning tests..."
dir('testRepo') {
timestamps {
timeout(time: 2, unit: 'HOURS') {
dir ('tests') {
sh "#!/bin/sh -xe\n ./cellStatsTest.sh"
}
} // timeout
} // timestamps
} // dir
} // steps
} // stage build & test
} // stages
post {
always {
junit "**/tests/**/*.xml"
emailext recipientProviders: [[$class: 'DevelopersRecipientProvider'], [$class: 'CulpritsRecipientProvider']],
to: 'elm-team-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