diff --git a/netci.groovy b/netci.groovy index bb7ac40cf4..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,11 +46,14 @@ 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") } + else { + Utilities.addGithubPushTrigger(newJob) + } Utilities.addMSTestResults(newJob, 'bin/**/*.trx')