File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 22
33import jobs.generation.Utilities ;
44
5- def project = ' dotnet/codeformatter'
5+ def project = GithubProject
6+ def branch = GithubBranchName
67// Define build string
78def buildString = ''' call "C:\\ Program Files (x86)\\ Microsoft Visual Studio 14.0\\ Common7\\ Tools\\ VsDevCmd.bat" && build.cmd'''
89
910// Generate the builds.
1011
1112[true , false ]. each { isPR ->
1213 def newJob = job(Utilities . getFullJobName(project, ' ' , isPR)) {
13- label(' windows' )
1414 steps {
1515 batchFile(buildString)
1616 }
1717 }
1818
19- Utilities . simpleInnerLoopJobSetup(newJob, project, isPR, ' Windows Debug' )
19+ Utilities . setMachineAffinity(newJob, ' Windows_NT' , ' latest-or-auto' )
20+ Utilities . standardJobSetup(newJob, project, isPR, " */${ branch} " )
21+ if (isPR) {
22+ Utilities . addGithubPRTriggerForBranch(newJob, branch, ' Windows Debug' )
23+ }
24+ else {
25+ Utilities . addGithubPushTrigger(newJob)
26+ }
2027}
You can’t perform that action at this time.
0 commit comments