forked from dotnet/orleans
-
Notifications
You must be signed in to change notification settings - Fork 0
/
netci.groovy
34 lines (27 loc) · 981 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
29
30
31
32
33
34
// Import the utility functionality.
import jobs.generation.Utilities;
def project = 'dotnet/orleans'
// Define build string
def buildString = '''call "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\Tools\\VsDevCmd.bat" && Build.cmd && Test.cmd'''
// 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.addArchival(commitJob, 'Binaries/**')
Utilities.addPRTestSCM(PRJob, project)
Utilities.addStandardOptions(PRJob)
Utilities.addStandardPRParameters(PRJob, project)
Utilities.addGithubPRTrigger(PRJob, 'Debug and Release')