summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSejong Oh <sejooh@microsoft.com>2016-06-20 15:42:22 -0700
committerSejong Oh <sejooh@microsoft.com>2016-06-20 15:42:22 -0700
commit972af956a0670c40eb4135be3de3d6041fe950fd (patch)
treed735d849c5cb7ab99f7341f37e8252b4885b091d
parentf5a854bd323e5e327ec1a011dc494d2abb1e7721 (diff)
downloadcoreclr-972af956a0670c40eb4135be3de3d6041fe950fd.tar.gz
coreclr-972af956a0670c40eb4135be3de3d6041fe950fd.tar.bz2
coreclr-972af956a0670c40eb4135be3de3d6041fe950fd.zip
Initial changes to group JIT stress jobs into a sub directory on CI
Add jitstress2_jitstressregs1 scenario first and then will add others after testing.
-rwxr-xr-xnetci.groovy14
1 files changed, 13 insertions, 1 deletions
diff --git a/netci.groovy b/netci.groovy
index bb2a66937f..9e519de698 100755
--- a/netci.groovy
+++ b/netci.groovy
@@ -8,6 +8,9 @@ def project = GithubProject
// The input branch name (e.g. master)
def branch = GithubBranchName
def projectFolder = Utilities.getFolderName(project) + '/' + Utilities.getFolderName(branch)
+
+// Create a folder for JIT stress jobs
+folder('jitstress')
def static getOSGroup(def os) {
def osGroupMap = ['Ubuntu':'Linux',
@@ -92,6 +95,14 @@ def static setMachineAffinity(def job, def os, def architecture) {
}
}
+def static isJITStressJob(def scenario) {
+ // For testing purpose, we test only one scenario here.
+ if (scenario == 'jitstress2_jitstressregs1') {
+ return true;
+ }
+ return false;
+}
+
def static isGCStressRelatedTesting(def scenario) {
// The 'gcstress15_pri1r2r' scenario is a basic scenario.
// Detect it and make it a GCStress related.
@@ -1405,9 +1416,10 @@ combinedScenarios.each { scenario ->
// Calculate names
def lowerConfiguration = configuration.toLowerCase()
def jobName = getJobName(configuration, architecture, os, scenario, isBuildOnly)
+ def folderName = isJITStressJob(scenario) ? 'jitstress' : '';
// Create the new job
- def newJob = job(Utilities.getFullJobName(project, jobName, isPR)) {}
+ def newJob = job(Utilities.getFullJobName(project, jobName, isPR, folderName)) {}
setMachineAffinity(newJob, os, architecture)