Changeset a3e1f8f for Jenkinsfile


Ignore:
Timestamp:
Jul 12, 2016, 4:06:56 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:
8884112, b94206b
Parents:
ccd5b12
Message:

Fixed naming issues in Jenkinsfile

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Jenkinsfile

    rccd5b12 ra3e1f8f  
    134134node ('master'){
    135135
    136         boolean doFullBuild
     136        boolean bIsFullBuild
    137137        def err = null
    138138        def log_needed = false
     
    165165                                        ]])
    166166
    167                                 doFullBuild = isFullBuild == 'true'
     167                                bIsFullBuild = isFullBuild == 'true'
    168168                                architectureFlag = buildArchitecture == '64-bit' ? '-m64' : (buildArchitecture == '32-bit' ? '-m32' : 'ERROR')
    169169
     
    172172                                //Compile using gcc-4.9
    173173                                currentCC = new CC_Desc('gcc-4.9', 'g++-4.9', 'gcc-4.9')
    174                                 cfa_build(doFullBuild, architectureFlag)
     174                                cfa_build(bIsFullBuild, architectureFlag)
    175175
    176176                                //Compile latex documentation
    177177                                doc_build()
    178178
    179                                 if( doFullBuild ) {
     179                                if( bIsFullBuild ) {
    180180                                        //Compile using gcc-5
    181181                                        currentCC = new CC_Desc('gcc-5', 'g++-5', 'gcc-5')
     
    204204
    205205        finally {
    206                 //Send email with final results
    207                 notify_result(doPromoteBuild2DoLang, err, currentBuild.result, log_needed)
     206                //Send email with final results if this is not a full build
     207                if( !bIsFullBuild ) {
     208                        email(currentBuild.result, log_needed)
     209                }
    208210
    209211                /* Must re-throw exception to propagate error */
     
    217219//Routine responsible of sending the email notification once the build is completed
    218220//===========================================================================================================
    219 def notify_result(boolean promote, Exception err, String status, boolean log) {
     221def notify_result(boolean bIsFullBuild, Exception err, String status, boolean log) {
    220222        echo 'Build completed, sending result notification'
    221         if(promote)     {
    222                 if( err ) {
    223                         promote_email(status)
    224                 }
    225         }
    226         else {
     223        if(bIsFullBuild)         {
    227224                email(status, log)
    228225        }
Note: See TracChangeset for help on using the changeset viewer.