This repository was archived by the owner on Jul 12, 2022. It is now read-only.
File tree 1 file changed +11
-25
lines changed
1 file changed +11
-25
lines changed Original file line number Diff line number Diff line change @@ -6,29 +6,15 @@ def project = 'dotnet/codeformatter'
6
6
// Define build string
7
7
def buildString = ''' call "C:\\ Program Files (x86)\\ Microsoft Visual Studio 14.0\\ Common7\\ Tools\\ VsDevCmd.bat" && build.cmd'''
8
8
9
- // Generate the builds for debug and release
9
+ // Generate the builds.
10
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' )
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
+ }
You can’t perform that action at this time.
0 commit comments