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

Commit 0124698

Browse files
committed
Merge pull request #181 from mmitche/add-netci
Add new style CI definition for codeformatter project
2 parents bb5a8ae + ae89818 commit 0124698

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

netci.groovy

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// Import the utility functionality.
2+
3+
import jobs.generation.Utilities;
4+
5+
def project = 'dotnet/codeformatter'
6+
// Define build string
7+
def buildString = '''call "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\Tools\\VsDevCmd.bat" && build.cmd'''
8+
9+
// Generate the builds for debug and release
10+
11+
def commitJob = job(Utilities.getFullJobName(project, '', false)) {
12+
label('windows')
13+
steps {
14+
batchFile(buildString)
15+
}
16+
}
17+
18+
def PRJob = job(Utilities.getFullJobName(project, '', true)) {
19+
label('windows')
20+
steps {
21+
batchFile(buildString)
22+
}
23+
}
24+
25+
Utilities.addScm(commitJob, project)
26+
Utilities.addStandardOptions(commitJob)
27+
Utilities.addStandardNonPRParameters(commitJob)
28+
Utilities.addGithubPushTrigger(commitJob)
29+
30+
31+
Utilities.addPRTestSCM(PRJob, project)
32+
Utilities.addStandardOptions(PRJob)
33+
Utilities.addStandardPRParameters(PRJob, project)
34+
Utilities.addGithubPRTrigger(PRJob, 'Windows Debug')

0 commit comments

Comments
 (0)