summaryrefslogtreecommitdiff
path: root/netci.groovy
diff options
context:
space:
mode:
authorBruce Forstall <brucefo@microsoft.com>2018-06-29 12:28:29 -0700
committerBruce Forstall <brucefo@microsoft.com>2018-06-29 12:28:29 -0700
commit7b35c6e0663ca122a9359a8f01f0b6bf74a6185e (patch)
treece49df961f5da58086c432215cbd2386c4fce810 /netci.groovy
parent022f14f8575a8c371e0fc4a83ab7aef01ab79d7b (diff)
downloadcoreclr-7b35c6e0663ca122a9359a8f01f0b6bf74a6185e.tar.gz
coreclr-7b35c6e0663ca122a9359a8f01f0b6bf74a6185e.tar.bz2
coreclr-7b35c6e0663ca122a9359a8f01f0b6bf74a6185e.zip
Remove build-only and TST jobs from the Jenkins views
We only want non-PR, "top-level" jobs in the views. Build-only and TST jobs are always "child" jobs of other flow jobs, which will be in the views.
Diffstat (limited to 'netci.groovy')
-rwxr-xr-xnetci.groovy12
1 files changed, 8 insertions, 4 deletions
diff --git a/netci.groovy b/netci.groovy
index 0d8e3516c2..9d5c929cb4 100755
--- a/netci.groovy
+++ b/netci.groovy
@@ -2864,8 +2864,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
@@ -3404,6 +3408,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))
@@ -3418,8 +3424,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/**")