Changes in Jenkinsfile [6ebc13f:3b6a87c]
- File:
-
- 1 edited
-
Jenkinsfile (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Jenkinsfile
r6ebc13f r3b6a87c 4 4 // Main loop of the compilation 5 5 //=========================================================================================================== 6 node ('master'){ 7 6 7 node('master') { 8 8 // Globals 9 BuildDir = pwd tmp: true10 SrcDir = pwd tmp: false9 BuildDir = null 10 SrcDir = null 11 11 Settings = null 12 12 StageName = '' … … 26 26 Settings = prepare_build() 27 27 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() 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 } 43 48 44 49 notify_server(45) … … 75 80 } 76 81 } 77 78 82 //=========================================================================================================== 79 83 // Main compilation routines … … 114 118 } 115 119 116 sh "${SrcDir}/configure CXX=${Settings.Compiler. CXX} CC=${Settings.Compiler.CC} ${Settings.Architecture.flags} ${targets} --quiet"120 sh "${SrcDir}/configure CXX=${Settings.Compiler.cpp_cc} ${Settings.Architecture.flags} ${targets} --with-backend-compiler=${Settings.Compiler.cfa_cc} --quiet" 117 121 118 122 //Compile the project … … 235 239 //Description of a compiler (Must be serializable since pipelines are persistent) 236 240 class CC_Desc implements Serializable { 237 public String name238 public String CXX239 public String CC240 241 CC_Desc(String name, String CXX, String CC) {242 this. name =name243 this. CXX = CXX244 this. CC = CC241 public String cc_name 242 public String cpp_cc 243 public String cfa_cc 244 245 CC_Desc(String cc_name, String cpp_cc, String cfa_cc) { 246 this.cc_name = cc_name 247 this.cpp_cc = cpp_cc 248 this.cfa_cc = cfa_cc 245 249 } 246 250 } … … 250 254 public String name 251 255 public String flags 252 253 Arch_Desc(String name, String flags) { 256 public String node 257 258 Arch_Desc(String name, String flags, String node) { 254 259 this.name = name 255 260 this.flags = flags 261 this.node = node 256 262 } 257 263 } … … 292 298 switch( param.Architecture ) { 293 299 case 'x64': 294 this.Architecture = new Arch_Desc('x64', '--host=x86_64' )300 this.Architecture = new Arch_Desc('x64', '--host=x86_64', 'x64') 295 301 break 296 302 case 'x86': 297 this.Architecture = new Arch_Desc('x86', '--host=i386' )303 this.Architecture = new Arch_Desc('x86', '--host=i386', 'x86') 298 304 break 299 305 default : … … 309 315 310 316 def full = param.RunAllTests ? " (Full)" : "" 311 this.DescShort = "${ this.Compiler. name }:${ this.Architecture.name }${full}"312 313 this.DescLong = """Compiler : ${ this.Compiler. name } (${ this.Compiler.CXX }/${ this.Compiler.CC})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 }) 314 320 Architecture : ${ this.Architecture.name } 315 321 Arc Flags : ${ this.Architecture.flags }
Note:
See TracChangeset
for help on using the changeset viewer.