forked from influxdata/influxql
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathJenkinsfile
More file actions
35 lines (32 loc) · 751 Bytes
/
Jenkinsfile
File metadata and controls
35 lines (32 loc) · 751 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
31
32
33
34
35
pipeline {
agent {
docker {
image 'golang:1.9.2'
}
}
stages {
stage('Test') {
steps {
sh """
rm -f $WORKSPACE/test-results.{log,xml}
mkdir -p /go/src/github.com/influxdata
cp -a $WORKSPACE /go/src/github.com/influxdata/influxql
cd /go/src/github.com/influxdata/influxql
go get -v -t
go test -v | tee $WORKSPACE/test-results.log
"""
}
post {
always {
sh """
if [ -e test-results.log ]; then
go get github.com/jstemmer/go-junit-report
go-junit-report < $WORKSPACE/test-results.log > test-results.xml
fi
"""
junit "test-results.xml"
}
}
}
}
}