-
Notifications
You must be signed in to change notification settings - Fork 8
/
Jenkinsfile
44 lines (40 loc) · 1.03 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
#!groovy
pipeline {
agent {
dockerfile {
filename 'ci/Dockerfile'
args '-u root'
label 'linux'
}
}
triggers {
pollSCM('H/10 * * * *')
}
stages {
stage('Build') {
steps {
sh 'cd /shelldoc && make'
}
}
stage('Test') {
steps {
sh 'cd /shelldoc && go test -v ./... 2>&1 | go-junit-report > testresults-gotest.xml'
}
}
stage('DocTest') {
steps {
sh 'cd /shelldoc && ./cmd/shelldoc/shelldoc run README.md --xml testresults-shelldoc.xml'
}
post {
always {
sh 'rm -f "${WORKSPACE}"/testresults*.xml'
sh 'cp /shelldoc/testresults*.xml "${WORKSPACE}"/'
sh 'ls -la "${WORKSPACE}"/'
junit '**/testresults-gotest.xml'
junit '**/testresults-shelldoc.xml'
cleanWs()
}
}
}
}
}