File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 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' 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments