summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Forstall <brucefo@microsoft.com>2018-07-03 10:27:00 -0700
committerGitHub <noreply@github.com>2018-07-03 10:27:00 -0700
commit13f2f8ce261db0771f6b602e90f0a408cdd33142 (patch)
tree51aa5be9b4bf95feef9ca22edc0d1b855d20915b
parent4a4cbc56e5d402e1a43a106c28aed2ec4a745e7b (diff)
parent7b35c6e0663ca122a9359a8f01f0b6bf74a6185e (diff)
downloadcoreclr-13f2f8ce261db0771f6b602e90f0a408cdd33142.tar.gz
coreclr-13f2f8ce261db0771f6b602e90f0a408cdd33142.tar.bz2
coreclr-13f2f8ce261db0771f6b602e90f0a408cdd33142.zip
Merge pull request #18716 from BruceForstall/RemoveTstJobsFromViews
Remove build-only and TST jobs from the Jenkins views
-rwxr-xr-xnetci.groovy12
1 files changed, 8 insertions, 4 deletions
diff --git a/netci.groovy b/netci.groovy
index 39aeff7428..dba45dc1dc 100755
--- a/netci.groovy
+++ b/netci.groovy
@@ -2863,8 +2863,12 @@ Constants.allScenarios.each { scenario ->
// Create the new job
def newJob = job(Utilities.getFullJobName(project, jobName, isPR, folderName)) {}
- // Should we add corefx_innerloop to views?
- addToViews(newJob, isPR, architecture, os)
+ // We don't want to include in view any job that is only used by a flow job (because we want the views to have only the
+ // "top-level" jobs. Build only jobs are such jobs.
+ if (!isBuildOnly)
+ {
+ addToViews(newJob, isPR, architecture, os)
+ }
setJobMachineAffinity(architecture, os, true, false, false, newJob) // isBuildJob = true, isTestJob = false, isFlowJob = false
@@ -3403,6 +3407,8 @@ ${runScript} \\
// Create a test job that will be used by a flow job.
// Returns the newly created job.
+// Note that we don't add tests jobs to the various views, since they are always used by a flow job, which is in the views,
+// and we want the views to be the minimal set of "top-level" jobs that represent all work.
def static CreateTestJob(def dslFactory, def project, def branch, def architecture, def os, def configuration, def scenario, def isPR, def inputCoreCLRBuildName, def inputTestsBuildName)
{
def windowsArmJob = ((os == "Windows_NT") && (architecture in Constants.armWindowsCrossArchitectureList))
@@ -3417,8 +3423,6 @@ def static CreateTestJob(def dslFactory, def project, def branch, def architectu
setJobMachineAffinity(architecture, os, false, true, false, newJob) // isBuildJob = false, isTestJob = true, isFlowJob = false
- addToViews(newJob, isPR, architecture, os)
-
if (scenario == 'jitdiff') {
def osGroup = getOSGroup(os)
Utilities.addArchival(newJob, "bin/tests/${osGroup}.${architecture}.${configuration}/dasm/**")