From 4ee8260a0d8e8d3f2752f3912f79431168a60004 Mon Sep 17 00:00:00 2001 From: Eric Erhardt Date: Mon, 7 May 2018 11:38:56 -0500 Subject: [PATCH 1/2] Add push trigger to netci.groovy This trigger will run on every commit and will allow a build status link to add to our README. --- netci.groovy | 3 +++ 1 file changed, 3 insertions(+) diff --git a/netci.groovy b/netci.groovy index bb7ac40cf4..67c9a171d1 100644 --- a/netci.groovy +++ b/netci.groovy @@ -52,6 +52,9 @@ def branch = GithubBranchName if (isPR) { Utilities.addGithubPRTriggerForBranch(newJob, branch, "$os $config") } + else { + Utilities.addGithubPushTrigger(newJob) + } Utilities.addMSTestResults(newJob, 'bin/**/*.trx') From 3941ea4eb8ca8309301b95e5e7a1b5767fa86be9 Mon Sep 17 00:00:00 2001 From: Eric Erhardt Date: Mon, 7 May 2018 11:59:48 -0500 Subject: [PATCH 2/2] Fix up InternalUtilities now that the repo is public. --- netci.groovy | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/netci.groovy b/netci.groovy index 67c9a171d1..eb78c766a5 100644 --- a/netci.groovy +++ b/netci.groovy @@ -2,7 +2,6 @@ import jobs.generation.ArchivalSettings; import jobs.generation.Utilities; -import jobs.generation.InternalUtilities; def project = GithubProject def branch = GithubBranchName @@ -26,7 +25,7 @@ def branch = GithubBranchName def buildCommand = buildFile + " -$config -runtests" def packCommand = buildFile + " -buildPackages" - def newJob = job(InternalUtilities.getFullJobName(project, jobName, isPR)) { + def newJob = job(Utilities.getFullJobName(project, jobName, isPR)) { steps { if (os == 'Windows_NT') { batchFile(buildCommand) @@ -47,7 +46,7 @@ def branch = GithubBranchName } Utilities.setMachineAffinity(newJob, osImageName, machineAffinity) - InternalUtilities.standardJobSetup(newJob, project, isPR, "*/${branch}") + Utilities.standardJobSetup(newJob, project, isPR, "*/${branch}") if (isPR) { Utilities.addGithubPRTriggerForBranch(newJob, branch, "$os $config")