Skip to content
This repository was archived by the owner on Jul 12, 2022. It is now read-only.

Commit 0502e59

Browse files
committed
Branchify and move away from the static labels
1 parent 48ab78f commit 0502e59

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

netci.groovy

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,26 @@
22

33
import jobs.generation.Utilities;
44

5-
def project = 'dotnet/codeformatter'
5+
def project = GithubProject
6+
def branch = GithubBranchName
67
// Define build string
78
def buildString = '''call "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\Tools\\VsDevCmd.bat" && build.cmd'''
89

910
// Generate the builds.
1011

1112
[true, false].each { isPR ->
1213
def newJob = job(Utilities.getFullJobName(project, '', isPR)) {
13-
label('windows')
1414
steps {
1515
batchFile(buildString)
1616
}
1717
}
1818

19-
Utilities.simpleInnerLoopJobSetup(newJob, project, isPR, 'Windows Debug')
19+
Utilities.setMachineAffinity(newJob, 'Windows_NT', 'latest-or-auto')
20+
Utilities.standardJobSetup(newJob, project, isPR, "*/${branch}")
21+
if (isPR) {
22+
Utilities.addGithubPRTriggerForBranch(newJob, branch, 'Windows Debug')
23+
}
24+
else {
25+
Utilities.addGithubPushTrigger(newJob)
26+
}
2027
}

0 commit comments

Comments
 (0)