Add push trigger to netci.groovy (#46)

* 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.

* Fix up InternalUtilities now that the repo is public.
This commit is contained in:
Eric Erhardt 2018-05-07 12:26:00 -05:00 коммит произвёл GitHub
Родитель 2038108473
Коммит 02e5cd5a14
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 5 добавлений и 3 удалений

Просмотреть файл

@ -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')