forked from dotnet/codeformatter
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnetci.groovy
More file actions
27 lines (22 loc) · 779 Bytes
/
netci.groovy
File metadata and controls
27 lines (22 loc) · 779 Bytes
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
// 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.
[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(job, branch, 'Windows Debug')
}
else {
Utilities.addGithubPushTrigger(job)
}
}