Skip to content

Commit 02e5cd5

Browse files
authored
Add push trigger to netci.groovy (dotnet#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.
1 parent 2038108 commit 02e5cd5

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

netci.groovy

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import jobs.generation.ArchivalSettings;
44
import jobs.generation.Utilities;
5-
import jobs.generation.InternalUtilities;
65

76
def project = GithubProject
87
def branch = GithubBranchName
@@ -26,7 +25,7 @@ def branch = GithubBranchName
2625
def buildCommand = buildFile + " -$config -runtests"
2726
def packCommand = buildFile + " -buildPackages"
2827

29-
def newJob = job(InternalUtilities.getFullJobName(project, jobName, isPR)) {
28+
def newJob = job(Utilities.getFullJobName(project, jobName, isPR)) {
3029
steps {
3130
if (os == 'Windows_NT') {
3231
batchFile(buildCommand)
@@ -47,11 +46,14 @@ def branch = GithubBranchName
4746
}
4847

4948
Utilities.setMachineAffinity(newJob, osImageName, machineAffinity)
50-
InternalUtilities.standardJobSetup(newJob, project, isPR, "*/${branch}")
49+
Utilities.standardJobSetup(newJob, project, isPR, "*/${branch}")
5150

5251
if (isPR) {
5352
Utilities.addGithubPRTriggerForBranch(newJob, branch, "$os $config")
5453
}
54+
else {
55+
Utilities.addGithubPushTrigger(newJob)
56+
}
5557

5658
Utilities.addMSTestResults(newJob, 'bin/**/*.trx')
5759

0 commit comments

Comments
 (0)