Changeset 04e367c for Jenkinsfile
- Timestamp:
- Jul 30, 2018, 4:49:40 PM (6 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, no_list, persistent-indexer, pthread-emulation, qualifiedEnum
- Children:
- 3537dd7, 3bbd012
- Parents:
- ba4a1d8 (diff), a4248de1 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Jenkinsfile
rba4a1d8 r04e367c 174 174 175 175 def notify_server(int wait) { 176 sh """curl -- data "wait=${wait}" -X POST https://cforall.uwaterloo.ca:8082/jenkins/notify > /dev/null || true"""176 sh """curl --silent --show-error --data "wait=${wait}" -X POST https://cforall.uwaterloo.ca:8082/jenkins/notify > /dev/null || true""" 177 177 return 178 178 } … … 260 260 def install_dir = pwd tmp: true 261 261 262 //Output compiler version to help with debug 263 echo """C++ Compiler :""" 264 sh "which ${compiler.cpp_cc} && ${compiler.cpp_cc} --version" 265 echo """C Compiler :""" 266 sh "which ${compiler.cfa_cc} && ${compiler.cfa_cc} --version" 267 268 //Configure the conpilation (Output is not relevant) 269 //Use the current directory as the installation target so nothing escapes the sandbox 270 //Also specify the compiler by hand 271 sh "./configure CXX=${compiler.cpp_cc} ${architecture} --with-backend-compiler=${compiler.cfa_cc} --prefix=${install_dir} --enable-silent-rules --quiet" 272 273 //Compile the project 274 sh 'make -j 8 --no-print-directory V=0 install' 262 // Build outside of the src tree to ease cleaning 263 sh "mkdir -p build" 264 dir ('build') { 265 //Configure the conpilation (Output is not relevant) 266 //Use the current directory as the installation target so nothing escapes the sandbox 267 //Also specify the compiler by hand 268 sh "../configure CXX=${compiler.cpp_cc} ${architecture} --with-backend-compiler=${compiler.cfa_cc} --prefix=${install_dir} --enable-silent-rules --quiet" 269 270 //Compile the project 271 sh 'make -j 8 --no-print-directory' 272 } 275 273 } 276 274 } … … 281 279 //Run the tests from the tests directory 282 280 if ( do_alltests ) { 283 sh 'make -C src/tests all-tests debug=yes --no-print-directory'284 sh 'make -C src/tests all-tests debug=no --no-print-directory'281 sh 'make -C build/src/tests all-tests debug=yes --no-print-directory' 282 sh 'make -C build/src/tests all-tests debug=no --no-print-directory' 285 283 } 286 284 else { 287 sh 'make -C src/tests --no-print-directory'285 sh 'make -C build/src/tests --no-print-directory' 288 286 } 289 287 } … … 296 294 297 295 //Append bench results 298 sh 'make -C src/benchmark --no-print-directory jenkins githash=' + gitRefNewValue + ' arch=' + arch_name + ' | tee bench.json'296 sh 'make -C build/src/benchmark --no-print-directory jenkins githash=' + gitRefNewValue + ' arch=' + arch_name + ' | tee bench.json' 299 297 } 300 298 } … … 302 300 def clean() { 303 301 build_stage('Cleanup') { 304 305 //do a maintainer-clean to make sure we need to remake from scratch 306 sh 'make maintainer-clean > /dev/null' 302 // clean the build by wipping the build directory 303 sh 'rm -rf build' 307 304 } 308 305 } … … 329 326 330 327 //Then publish the results 331 sh 'curl - H \'Content-Type: application/json\' --data @bench.json https://cforall.uwaterloo.ca:8082/jenkins/publish > /dev/null || true'328 sh 'curl --silent --show-error -H \'Content-Type: application/json\' --data @bench.json https://cforall.uwaterloo.ca:8082/jenkins/publish > /dev/null || true' 332 329 } 333 330 }
Note: See TracChangeset
for help on using the changeset viewer.