Skip to content

Commit 6345723

Browse files
authored
Jenkinsfile -> tweaks to enable prometheus support (#948)
Jenkinsfile -> tweaks to enable prometheus support
2 parents 2db827d + 1bfb595 commit 6345723

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Jenkinsfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pipeline {
77
nodeSelector 'srcd.host/type=jenkins-worker'
88
containerTemplate {
99
name 'regression-gitbase'
10-
image 'srcd/regression-gitbase:v0.2.1'
10+
image 'srcd/regression-gitbase:v0.3.1'
1111
ttyEnabled true
1212
command 'cat'
1313
}
@@ -17,13 +17,16 @@ pipeline {
1717
GOPATH = "/go"
1818
GO_IMPORT_PATH = "github.com/src-d/regression-gibase"
1919
GO_IMPORT_FULL_PATH = "${env.GOPATH}/src/${env.GO_IMPORT_PATH}"
20+
GO111MODULE = "on"
21+
PROM_ADDRESS = "http://prom-pushgateway-prometheus-pushgateway.monitoring.svc.cluster.local:9091"
22+
PROM_JOB = "gitbase_perfomance"
2023
}
2124
triggers { pollSCM('0 0,12 * * *') }
2225
stages {
2326
stage('Run') {
2427
when { branch 'master' }
2528
steps {
26-
sh '/bin/regression --complexity=2 --csv local:HEAD'
29+
sh '/bin/regression --complexity=2 --csv --prom local:HEAD'
2730
}
2831
}
2932
stage('PR-run') {

0 commit comments

Comments
 (0)