Fix pull request title automation
authorDrew Scoggins <anscoggi@microsoft.com>
Thu, 12 Jan 2017 00:24:43 +0000 (16:24 -0800)
committerDrew Scoggins <anscoggi@microsoft.com>
Thu, 12 Jan 2017 00:27:09 +0000 (16:27 -0800)
When I added the ability to give a custom name to a run that was kicked
off using the PR leg I did it by adding an additional parameter.  When
using a variable name there I need to use the dollar sign syntax of
groovy and not an environment variable.

Commit migrated from https://github.com/dotnet/coreclr/commit/4bce446ccc86a500bc7002ce0c91bc6fd6a22557

src/coreclr/perf.groovy

index d7eb783..b2dfedd 100644 (file)
@@ -41,7 +41,7 @@ def static getOSGroup(def os) {
                        {
                                parameters
                                {
-                                       stringParam('BenchviewCommitName', '%ghprbPullTitle%', 'The name that you will be used to build the full title of a run in Benchview.  The final name will be of the form <branch> private BenchviewCommitName')
+                                       stringParam('BenchviewCommitName', '\${ghprbPullTitle}', 'The name that you will be used to build the full title of a run in Benchview.  The final name will be of the form <branch> private BenchviewCommitName')
                                }
                        }
                        def configuration = 'Release'
@@ -107,7 +107,7 @@ def static getOSGroup(def os) {
                        {
                                parameters
                                {
-                                       stringParam('BenchviewCommitName', '\$ghprbPullTitle', 'The name that you will be used to build the full title of a run in Benchview.  The final name will be of the form <branch> private BenchviewCommitName')
+                                       stringParam('BenchviewCommitName', '\${ghprbPullTitle}', 'The name that you will be used to build the full title of a run in Benchview.  The final name will be of the form <branch> private BenchviewCommitName')
                                }
                        }
                        def osGroup = getOSGroup(os)