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

Commit 8d049ad

Browse files
committed
Merge pull request #187 from mmitche/simplify-creation
Simplify job creation using new utility functionality
2 parents 6fb92f5 + a8a3dbd commit 8d049ad

File tree

1 file changed

+11
-25
lines changed

1 file changed

+11
-25
lines changed

netci.groovy

+11-25
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,15 @@ def project = 'dotnet/codeformatter'
66
// Define build string
77
def buildString = '''call "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\Tools\\VsDevCmd.bat" && build.cmd'''
88

9-
// Generate the builds for debug and release
9+
// Generate the builds.
1010

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')
11+
[true, false].each { isPR ->
12+
def newJob = job(Utilities.getFullJobName(project, '', isPR)) {
13+
label('windows')
14+
steps {
15+
batchFile(buildString)
16+
}
17+
}
18+
19+
Utilities.simpleInnerLoopJobSetup(newJob, project, isPR, 'Windows Debug')
20+
}

0 commit comments

Comments
 (0)