From 88bcc7787d69c287a3abe80f638e618e7466e80e Mon Sep 17 00:00:00 2001 From: James Nord Date: Mon, 23 Dec 2019 14:01:55 +0000 Subject: [PATCH 1/2] activate the profile directly rather than indirectly via a property do not be scared of profiles - activate them directly so you know what is happening (also removed in plugin-pom 4.0) https://github.com/jenkinsci/plugin-pom/pull/269 --- vars/runBenchmarks.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vars/runBenchmarks.groovy b/vars/runBenchmarks.groovy index 4805400de..6b83f1226 100644 --- a/vars/runBenchmarks.groovy +++ b/vars/runBenchmarks.groovy @@ -14,7 +14,7 @@ def call(String artifacts = null) { } stage('Run Benchmarks') { - List mvnOptions = ['test', '-Dbenchmark'] + List mvnOptions = ['test', '-P jmh-benchmark'] infra.runMaven(mvnOptions) } From bf68549d5d8df40908eec5e83bb525ce4877e4d2 Mon Sep 17 00:00:00 2001 From: James Nord Date: Mon, 23 Dec 2019 14:09:01 +0000 Subject: [PATCH 2/2] options are different args --- vars/runBenchmarks.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vars/runBenchmarks.groovy b/vars/runBenchmarks.groovy index 6b83f1226..280494220 100644 --- a/vars/runBenchmarks.groovy +++ b/vars/runBenchmarks.groovy @@ -14,7 +14,7 @@ def call(String artifacts = null) { } stage('Run Benchmarks') { - List mvnOptions = ['test', '-P jmh-benchmark'] + List mvnOptions = ['test', '-P', 'jmh-benchmark'] infra.runMaven(mvnOptions) }