forked from dotnet/buildtools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
netci.groovy
28 lines (22 loc) · 809 Bytes
/
netci.groovy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Import the utility functionality.
import jobs.generation.Utilities;
def project = GithubProject
def branch = GithubBranchName
// Define build string
def buildString = '''call "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\Tools\\VsDevCmd.bat" && build.cmd'''
// Generate the builds for debug and release
[true, false].each { isPR ->
def newJob = job(Utilities.getFullJobName(project, '', isPR)) {
steps {
batchFile(buildString)
}
}
Utilities.setMachineAffinity(newJob, 'Windows_NT', 'latest-or-auto')
Utilities.standardJobSetup(newJob, project, isPR, "*/${branch}")
if (isPR) {
Utilities.addGithubPRTriggerForBranch(newJob, branch, 'Innerloop Windows Debug')
}
else {
Utilities.addGithubPushTrigger(newJob)
}
}