ci: run benchmark on a PR basis if comment
@@ -28,7 +28,7 @@ pipeline {
quietPeriod(10)
}
triggers {
- issueCommentTrigger('(?i).*(?:jenkins\\W+)?run\\W+(?:the\\W+)?tests(?:\\W+please)?.*')
+ issueCommentTrigger('(?i).*(?:jenkins\\W+)?run\\W+(?:the\\W+)?(?:benchmark\\W+)?tests(?:\\W+please)?.*')
}
parameters {
string(name: 'MAVEN_CONFIG', defaultValue: '-B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn', description: 'Additional maven options.')
@@ -217,8 +217,9 @@ pipeline {
branch 'master'
branch "\\d+\\.\\d+"
branch "v\\d?"
- tag "v\\d+\\.\\d+\\.\\d+*"
+ tag pattern: 'v\\d+\\.\\d+\\.\\d+', comparator: 'REGEXP'
expression { return params.Run_As_Master_Branch }
+ expression { return env.GITHUB_COMMENT?.contains('benchmark tests') }
}
expression { return params.bench_ci }
}
