Changeset 18a1419 for Jenkins


Ignore:
Timestamp:
Jul 15, 2016, 6:22:12 PM (8 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
1d57215
Parents:
b8303f44
Message:

fixed various small issues with full build also reactivated emails and push to do-lang

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Jenkins/FullBuild

    rb8303f44 r18a1419  
    2828// Main loop of the compilation
    2929//===========================================================================================================
    30 node ('master'){
    31         try {
    32                 //Prevent the build from exceeding 30 minutes
    33                 timeout(60) {
    3430
    35                         //Wrap build to add timestamp to command line
    36                         wrap([$class: 'TimestamperBuildWrapper']) {
     31try {
     32        //Prevent the build from exceeding 30 minutes
     33        timeout(60) {
    3734
    38                                 stage 'Build'
     35                //Wrap build to add timestamp to command line
     36                wrap([$class: 'TimestamperBuildWrapper']) {
    3937
    40                                         parallel (
    41                                                 x64: { node ('master') {
    42                                                         build job: 'Cforall/master',                                    \
    43                                                                 parameters: [                                           \
    44                                                                         [$class: 'BooleanParameterValue',               \
    45                                                                           name: 'isFullBuild',                          \
    46                                                                           value: true],                                         \
    47                                                                         [$class: 'StringParameterValue',                \
    48                                                                           name: 'buildArchitecture',                    \
    49                                                                           value: '64-bit']                              \
    50                                                                 ]
    51                                                 }},
    52                                                 x32: { node ('master') {
    53                                                         build job: 'Cforall/master',                                    \
    54                                                                 parameters: [                                           \
    55                                                                         [$class: 'BooleanParameterValue',               \
    56                                                                           name: 'isFullBuild',                          \
    57                                                                           value: true],                                         \
    58                                                                         [$class: 'StringParameterValue',                \
    59                                                                           name: 'buildArchitecture',                    \
    60                                                                           value: '32-bit']                              \
    61                                                                 ]
    62                                                 }}
    63                                         )
     38                        stage 'Build'
    6439
    65                                 //Push latest changes to do-lang repo
    66                                 //push_build()
    67                         }
     40                                results = [null, null]
     41
     42                                parallel (
     43                                        x64: {
     44                                                result[0] = build job: 'Cforall/master',                                        \
     45                                                        parameters: [                                           \
     46                                                                [$class: 'BooleanParameterValue',               \
     47                                                                  name: 'isFullBuild',                          \
     48                                                                  value: true],                                         \
     49                                                                [$class: 'StringParameterValue',                \
     50                                                                  name: 'buildArchitecture',                    \
     51                                                                  value: '64-bit']                              \
     52                                                        ]
     53                                        },
     54                                        x32:
     55                                         {
     56                                                result[1] = build job: 'Cforall/master',                                        \
     57                                                        parameters: [                                           \
     58                                                                [$class: 'BooleanParameterValue',               \
     59                                                                  name: 'isFullBuild',                          \
     60                                                                  value: true],                                         \
     61                                                                [$class: 'StringParameterValue',                \
     62                                                                  name: 'buildArchitecture',                    \
     63                                                                  value: '32-bit']                              \
     64                                                        ]
     65                                        }
     66                                )
     67
     68                                results.each { result ->
     69                                        echo(result.result)
     70                                        echo(result.absoluteUrl)
     71
     72                                        if (result.result != 'SUCCESS') {
     73                                                echo( 'Build Succeded' )
     74                                        }
     75                                }
     76
     77                        //Push latest changes to do-lang repo
     78                        push_build()
    6879                }
    6980        }
     81}
    7082
    71         //If an exception is caught we need to change the status and remember to
    72         //attach the build log to the email
    73         catch (Exception caughtError) {
    74                 //rethrow error later
    75                 err = caughtError
     83//If an exception is caught we need to change the status and remember to
     84//attach the build log to the email
     85catch (Exception caughtError) {
     86        //rethrow error later
     87        err = caughtError
    7688
    77                 //Store the result of the build log
    78                 currentBuild.result = "${status_prefix} FAILURE".trim()
     89        //Store the result of the build log
     90        currentBuild.result = "${status_prefix} FAILURE".trim()
    7991
    80                 //Send email to notify the failure
    81                 //promote_email(currentBuild.result)
    82         }
     92        //Send email to notify the failure
     93        promote_email(currentBuild.result)
     94}
    8395
    84         finally {
    85                 //Must re-throw exception to propagate error
    86                 if (err) {
    87                         throw err
    88                 }
     96finally {
     97        //Must re-throw exception to propagate error
     98        if (err) {
     99                throw err
    89100        }
    90101}
Note: See TracChangeset for help on using the changeset viewer.