Changes in Jenkinsfile [af43394:eda8175]
- File:
-
- 1 edited
-
Jenkinsfile (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Jenkinsfile
raf43394 reda8175 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. CXX} CC=${Settings.Compiler.CC} ${Settings.Architecture.flags} ${targets} --quiet"116 sh "${SrcDir}/configure CXX=${Settings.Compiler.cpp_cc} ${Settings.Architecture.flags} ${targets} --with-backend-compiler=${Settings.Compiler.cfa_cc} --quiet" 121 117 122 118 //Compile the project … … 132 128 //Run the tests from the tests directory 133 129 if ( Settings.RunAllTests ) { 134 sh 'make --no-print-directory -C tests timeouts="--timeout=600"all-tests debug=yes'135 sh 'make --no-print-directory -C tests timeouts="--timeout=600"all-tests debug=no '130 sh 'make --no-print-directory -C tests all-tests debug=yes' 131 sh 'make --no-print-directory -C tests all-tests debug=no ' 136 132 } 137 133 else { … … 239 235 //Description of a compiler (Must be serializable since pipelines are persistent) 240 236 class CC_Desc implements Serializable { 241 public String name242 public String CXX243 public String CC244 245 CC_Desc(String name, String CXX, String CC) {246 this. name =name247 this. CXX = CXX248 this. CC = CC237 public String cc_name 238 public String cpp_cc 239 public String cfa_cc 240 241 CC_Desc(String cc_name, String cpp_cc, String cfa_cc) { 242 this.cc_name = cc_name 243 this.cpp_cc = cpp_cc 244 this.cfa_cc = cfa_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' , 'master')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' , 'master')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. name }:${ this.Architecture.name }${full}"318 319 this.DescLong = """Compiler : ${ this.Compiler. name } (${ this.Compiler.CXX }/${ this.Compiler.CC})311 this.DescShort = "${ this.Compiler.cc_name }:${ this.Architecture.name }${full}" 312 313 this.DescLong = """Compiler : ${ this.Compiler.cc_name } (${ this.Compiler.cpp_cc }/${ this.Compiler.cfa_cc }) 320 314 Architecture : ${ this.Architecture.name } 321 315 Arc Flags : ${ this.Architecture.flags }
Note:
See TracChangeset
for help on using the changeset viewer.