This repository was archived by the owner on Mar 8, 2020. It is now read-only.
File tree 2 files changed +33
-17
lines changed
2 files changed +33
-17
lines changed Original file line number Diff line number Diff line change @@ -38,13 +38,21 @@ spec:
38
38
PROM_ADDRESS = " http://prom-pushgateway-prometheus-pushgateway.monitoring.svc.cluster.local:9091"
39
39
PROM_JOB = " bblfsh_perfomance"
40
40
}
41
- // TODO(lwsanty): https://github.com/src-d/infrastructure/issues/992
42
- // this is polling for every 2 minutes
43
- // however it's better to use trigger curl http://yourserver/jenkins/git/notifyCommit?url=<URL of the Git repository >
44
- // https://kohsuke.org/2011/12/01/polling-must-die-triggering-jenkins-builds-from-a-git-hook/
45
- // the problem is that it requires Jenkins to be accessible from the hook side
46
- // probably Travis CI could trigger Jenkins after all unit tests have passed...
47
- triggers { pollSCM(' H/2 * * * *' ) }
41
+ triggers {
42
+ GenericTrigger(
43
+ genericVariables: [
44
+ [key: ' ref' , value: ' $.ref' ]
45
+ ],
46
+ token: ' {{.Manifest.Language}}-driver' ,
47
+ causeString: ' Triggered on $ref' ,
48
+
49
+ printContributedVariables: true ,
50
+ printPostContent: true ,
51
+
52
+ regexpFilterText: ' $ref' ,
53
+ regexpFilterExpression: ' refs/heads/' + BRANCH_NAME
54
+ )
55
+ }
48
56
stages {
49
57
stage(' Run transformations benchmark' ) {
50
58
when { branch ' master' }
You can’t perform that action at this time.
0 commit comments