summaryrefslogtreecommitdiff
path: root/perf.groovy
diff options
context:
space:
mode:
authorDrew Scoggins <anscoggi@microsoft.com>2016-12-07 16:12:14 -0800
committerDrew Scoggins <anscoggi@microsoft.com>2016-12-12 16:27:46 -0800
commit82ba80a5fd8f300204c15eda73c632ca5568fd88 (patch)
tree095244b829755b5877aa80ce4bed4334da63ea4d /perf.groovy
parent61ffc9f3fbf80a6b8a04eb2674b057c6cce465f0 (diff)
downloadcoreclr-82ba80a5fd8f300204c15eda73c632ca5568fd88.tar.gz
coreclr-82ba80a5fd8f300204c15eda73c632ca5568fd88.tar.bz2
coreclr-82ba80a5fd8f300204c15eda73c632ca5568fd88.zip
Add ability to give a name to a PR run
Diffstat (limited to 'perf.groovy')
-rw-r--r--perf.groovy32
1 files changed, 24 insertions, 8 deletions
diff --git a/perf.groovy b/perf.groovy
index e33d950420..d7eb783cb9 100644
--- a/perf.groovy
+++ b/perf.groovy
@@ -28,9 +28,6 @@ def static getOSGroup(def os) {
[true, false].each { isPR ->
['Windows_NT'].each { os ->
['x64'].each { architecture ->
- def configuration = 'Release'
- def runType = isPR ? 'private' : 'rolling'
- def benchViewName = isPR ? 'coreclr private %ghprbPullTitle%' : 'coreclr rolling %GIT_BRANCH_WITHOUT_ORIGIN% %GIT_COMMIT%'
def newJob = job(Utilities.getFullJobName(project, "perf_perflab_${os}", isPR)) {
// Set the label.
label('windows_clr_perf')
@@ -40,6 +37,17 @@ def static getOSGroup(def os) {
}
}
+ if (isPR)
+ {
+ 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')
+ }
+ }
+ def configuration = 'Release'
+ def runType = isPR ? 'private' : 'rolling'
+ def benchViewName = isPR ? 'coreclr private %BenchviewCommitName%' : 'coreclr rolling %GIT_BRANCH_WITHOUT_ORIGIN% %GIT_COMMIT%'
+
steps {
// Batch
@@ -86,11 +94,6 @@ def static getOSGroup(def os) {
// Create the Linux/OSX/CentOS coreclr test leg for debug and release and each scenario
[true, false].each { isPR ->
['Ubuntu14.04'].each { os ->
- def osGroup = getOSGroup(os)
- def architecture = 'x64'
- def configuration = 'Release'
- def runType = isPR ? 'private' : 'rolling'
- def benchViewName = isPR ? 'coreclr private \$ghprbPullTitle' : 'coreclr rolling \$GIT_BRANCH_WITHOUT_ORIGIN \$GIT_COMMIT'
def newJob = job(Utilities.getFullJobName(project, "perf_${os}", isPR)) {
label('linux_clr_perf')
@@ -100,6 +103,19 @@ def static getOSGroup(def os) {
}
}
+ if (isPR)
+ {
+ 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')
+ }
+ }
+ def osGroup = getOSGroup(os)
+ def architecture = 'x64'
+ def configuration = 'Release'
+ def runType = isPR ? 'private' : 'rolling'
+ def benchViewName = isPR ? 'coreclr private \$BenchviewCommitName' : 'coreclr rolling \$GIT_BRANCH_WITHOUT_ORIGIN \$GIT_COMMIT'
+
steps {
shell("bash ./tests/scripts/perf-prep.sh")
shell("./init-tools.sh")