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:
Родитель
2038108473
Коммит
02e5cd5a14
|
@ -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')
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче