forked from dotnet/buildtools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnetci.groovy
More file actions
34 lines (26 loc) · 952 Bytes
/
Copy pathnetci.groovy
File metadata and controls
34 lines (26 loc) · 952 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
28
29
30
31
32
33
34
// Import the utility functionality.
import jobs.generation.Utilities;
def project = 'dotnet/buildtools'
// Define build string
def buildString = '''call "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\Tools\\VsDevCmd.bat" && build.cmd /p:SkipTests=true'''
// Generate the builds for debug and release
def commitJob = job(Utilities.getFullJobName(project, '', false)) {
label('windows')
steps {
batchFile(buildString)
}
}
def PRJob = job(Utilities.getFullJobName(project, '', true)) {
label('windows')
steps {
batchFile(buildString)
}
}
Utilities.addScm(commitJob, project)
Utilities.addStandardOptions(commitJob)
Utilities.addStandardNonPRParameters(commitJob)
Utilities.addGithubPushTrigger(commitJob)
Utilities.addPRTestSCM(PRJob, project)
Utilities.addStandardOptions(PRJob)
Utilities.addStandardPRParameters(PRJob, project)
Utilities.addGithubPRTrigger(PRJob, 'Windows Debug')