Changes in Jenkinsfile [3b6a87c:6ebc13f]
- File:
-
- 1 edited
-
Jenkinsfile (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Jenkinsfile
r3b6a87c r6ebc13f 4 4 // Main loop of the compilation 5 5 //=========================================================================================================== 6 7 node('master') { 6 node ('master'){ 7 8 8 // Globals 9 BuildDir = null10 SrcDir = null9 BuildDir = pwd tmp: true 10 SrcDir = pwd tmp: false 11 11 Settings = null 12 12 StageName = '' … … 26 26 Settings = prepare_build() 27 27 28 node(Settings.Architecture.node) { 29 BuildDir = pwd tmp: true 30 SrcDir = pwd tmp: false 31 32 clean() 33 34 checkout() 35 36 notify_server(0) 37 38 build() 39 40 test() 41 42 benchmark() 43 44 build_doc() 45 46 publish() 47 } 28 clean() 29 30 checkout() 31 32 notify_server(0) 33 34 build() 35 36 test() 37 38 benchmark() 39 40 build_doc() 41 42 publish() 48 43 49 44 notify_server(45) … … 80 75 } 81 76 } 77 82 78 //=========================================================================================================== 83 79 // Main compilation routines … … 118 114 } 119 115 120 sh "${SrcDir}/configure CXX=${Settings.Compiler. cpp_cc} ${Settings.Architecture.flags} ${targets} --with-backend-compiler=${Settings.Compiler.cfa_cc} --quiet"116 sh "${SrcDir}/configure CXX=${Settings.Compiler.CXX} CC=${Settings.Compiler.CC} ${Settings.Architecture.flags} ${targets} --quiet" 121 117 122 118 //Compile the project … … 239 235 //Description of a compiler (Must be serializable since pipelines are persistent) 240 236 class CC_Desc implements Serializable { 241 public String cc_name242 public String cpp_cc243 public String cfa_cc244 245 CC_Desc(String cc_name, String cpp_cc, String cfa_cc) {246 this. cc_name = cc_name247 this. cpp_cc = cpp_cc248 this. cfa_cc = cfa_cc237 public String name 238 public String CXX 239 public String CC 240 241 CC_Desc(String name, String CXX, String CC) { 242 this.name = name 243 this.CXX = CXX 244 this.CC = CC 249 245 } 250 246 } … … 254 250 public String name 255 251 public String flags 256 public String node 257 258 Arch_Desc(String name, String flags, String node) { 252 253 Arch_Desc(String name, String flags) { 259 254 this.name = name 260 255 this.flags = flags 261 this.node = node262 256 } 263 257 } … … 298 292 switch( param.Architecture ) { 299 293 case 'x64': 300 this.Architecture = new Arch_Desc('x64', '--host=x86_64' , 'x64')294 this.Architecture = new Arch_Desc('x64', '--host=x86_64') 301 295 break 302 296 case 'x86': 303 this.Architecture = new Arch_Desc('x86', '--host=i386' , 'x86')297 this.Architecture = new Arch_Desc('x86', '--host=i386') 304 298 break 305 299 default : … … 315 309 316 310 def full = param.RunAllTests ? " (Full)" : "" 317 this.DescShort = "${ this.Compiler. cc_name }:${ this.Architecture.name }${full}"318 319 this.DescLong = """Compiler : ${ this.Compiler. cc_name } (${ this.Compiler.cpp_cc }/${ this.Compiler.cfa_cc})311 this.DescShort = "${ this.Compiler.name }:${ this.Architecture.name }${full}" 312 313 this.DescLong = """Compiler : ${ this.Compiler.name } (${ this.Compiler.CXX }/${ this.Compiler.CC }) 320 314 Architecture : ${ this.Architecture.name } 321 315 Arc Flags : ${ this.Architecture.flags }
Note:
See TracChangeset
for help on using the changeset viewer.