Changeset 734891d
- Timestamp:
- Feb 22, 2017, 5:33:53 PM (8 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, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 14ce3392, 9d169f1
- Parents:
- 692de479
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Jenkinsfile
r692de479 r734891d 9 9 def err = null 10 10 def log_needed = false 11 12 stage_name = '' 11 13 12 14 compiler = null … … 61 63 62 64 //Store the result of the build log 63 currentBuild.result = "${sta tus_prefix} FAILURE".trim()65 currentBuild.result = "${stage_name} FAILURE".trim() 64 66 } 65 67 66 68 finally { 67 echo 'Build Completed'68 69 69 //Send email with final results if this is not a full build 70 if( !do_sendemail && !bIsSandbox) {70 if( (!do_sendemail) && (!bIsSandbox) ) { 71 71 echo 'Notifying users of result' 72 72 email(currentBuild.result, log_needed) 73 73 } 74 75 echo 'Build Completed' 74 76 75 77 /* Must re-throw exception to propagate error */ … … 165 167 } 166 168 169 def build_stage(String name) { 170 stage_name = name 171 stage name 172 } 173 167 174 def notify_server() { 168 175 sh 'curl --silent -X POST http://plg2:8082/jenkins/notify > /dev/null' … … 235 242 //Compilation script is done here but environnement set-up and error handling is done in main loop 236 243 def checkout() { 237 stage'Checkout'244 build_stage'Checkout' 238 245 //checkout the source code and clean the repo 239 246 checkout scm … … 247 254 248 255 def build() { 249 stage'Build'256 build_stage'Build' 250 257 251 258 def install_dir = pwd tmp: true … … 262 269 263 270 def test() { 264 stage'Test'271 build_stage'Test' 265 272 266 273 //Run the tests from the tests directory … … 275 282 276 283 def benchmark() { 277 stage'Benchmark'284 build_stage'Benchmark' 278 285 279 286 if( !do_benchmark ) return … … 287 294 288 295 def clean() { 289 stage'Cleanup'296 build_stage'Cleanup' 290 297 291 298 //do a maintainer-clean to make sure we need to remake from scratch … … 294 301 295 302 def build_doc() { 296 stage'Documentation'303 build_stage'Documentation' 297 304 298 305 if( !do_doc ) return … … 308 315 309 316 def publish() { 310 stage'Publish'317 build_stage'Publish' 311 318 312 319 if( !do_publish ) return
Note: See TracChangeset
for help on using the changeset viewer.