Skip to content

Commit

Permalink
regression: add Jenkinsfile
Browse files Browse the repository at this point in the history
Signed-off-by: Javi Fontan <jfontan@gmail.com>
  • Loading branch information
jfontan committed Jan 4, 2019
1 parent c6796b7 commit f21db3b
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions Jenkinsfile
@@ -0,0 +1,54 @@
pipeline {
agent {
kubernetes {
label 'regression-gitbase'
inheritFrom 'performance'
defaultContainer 'regression-gitbase'
containerTemplate {
name 'regression-gitbase'
image 'srcd/regression-gitbase:v0.2.0'
ttyEnabled true
command 'cat'
}
}
}
environment {
GOPATH = "/go"
GO_IMPORT_PATH = "github.com/src-d/regression-gibase"
GO_IMPORT_FULL_PATH = "${env.GOPATH}/src/${env.GO_IMPORT_PATH}"
}
triggers { pollSCM('0 0,12 * * *') }
stages {
stage('Run') {
when { branch 'master' }
steps {
sh '/bin/regression --complexity=2 --csv local:HEAD'
}
}
stage('Plot') {
when { branch 'master' }
steps {
script {
plotFiles = findFiles(glob: "plot_*.csv")
plotFiles.each {
echo "plot ${it.getName()}"
sh "cat ${it.getName()}"
plot(
group: 'performance',
csvFileName: it.getName(),
title: it.getName(),
numBuilds: '100',
style: 'line',
csvSeries: [[
displayTableFlag: false,
exclusionValues: '',
file: it.getName(),
inclusionFlag: 'OFF',
]]
)
}
}
}
}
}
}

0 comments on commit f21db3b

Please sign in to comment.