File tree Expand file tree Collapse file tree 1 file changed +54
-0
lines changed Expand file tree Collapse file tree 1 file changed +54
-0
lines changed Original file line number Diff line number Diff line change
1
+ pipeline {
2
+ agent {
3
+ kubernetes {
4
+ label ' regression-gitbase'
5
+ inheritFrom ' performance'
6
+ defaultContainer ' regression-gitbase'
7
+ containerTemplate {
8
+ name ' regression-gitbase'
9
+ image ' srcd/regression-gitbase:v0.2.0'
10
+ ttyEnabled true
11
+ command ' cat'
12
+ }
13
+ }
14
+ }
15
+ environment {
16
+ GOPATH = " /go"
17
+ GO_IMPORT_PATH = " github.com/src-d/regression-gibase"
18
+ GO_IMPORT_FULL_PATH = " ${ env.GOPATH} /src/${ env.GO_IMPORT_PATH} "
19
+ }
20
+ triggers { pollSCM(' 0 0,12 * * *' ) }
21
+ stages {
22
+ stage(' Run' ) {
23
+ when { branch ' master' }
24
+ steps {
25
+ sh ' /bin/regression --complexity=2 --csv local:HEAD'
26
+ }
27
+ }
28
+ stage(' Plot' ) {
29
+ when { branch ' master' }
30
+ steps {
31
+ script {
32
+ plotFiles = findFiles(glob : " plot_*.csv" )
33
+ plotFiles. each {
34
+ echo " plot ${ it.getName()} "
35
+ sh " cat ${ it.getName()} "
36
+ plot(
37
+ group : ' performance' ,
38
+ csvFileName : it. getName(),
39
+ title : it. getName(),
40
+ numBuilds : ' 100' ,
41
+ style : ' line' ,
42
+ csvSeries : [[
43
+ displayTableFlag : false ,
44
+ exclusionValues : ' ' ,
45
+ file : it. getName(),
46
+ inclusionFlag : ' OFF' ,
47
+ ]]
48
+ )
49
+ }
50
+ }
51
+ }
52
+ }
53
+ }
54
+ }
You can’t perform that action at this time.
0 commit comments