Changeset a3e1f8f for Jenkinsfile
- Timestamp:
- Jul 12, 2016, 4:06:56 PM (8 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Jenkinsfile
rccd5b12 ra3e1f8f 134 134 node ('master'){ 135 135 136 boolean doFullBuild136 boolean bIsFullBuild 137 137 def err = null 138 138 def log_needed = false … … 165 165 ]]) 166 166 167 doFullBuild = isFullBuild == 'true'167 bIsFullBuild = isFullBuild == 'true' 168 168 architectureFlag = buildArchitecture == '64-bit' ? '-m64' : (buildArchitecture == '32-bit' ? '-m32' : 'ERROR') 169 169 … … 172 172 //Compile using gcc-4.9 173 173 currentCC = new CC_Desc('gcc-4.9', 'g++-4.9', 'gcc-4.9') 174 cfa_build( doFullBuild, architectureFlag)174 cfa_build(bIsFullBuild, architectureFlag) 175 175 176 176 //Compile latex documentation 177 177 doc_build() 178 178 179 if( doFullBuild ) {179 if( bIsFullBuild ) { 180 180 //Compile using gcc-5 181 181 currentCC = new CC_Desc('gcc-5', 'g++-5', 'gcc-5') … … 204 204 205 205 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 } 208 210 209 211 /* Must re-throw exception to propagate error */ … … 217 219 //Routine responsible of sending the email notification once the build is completed 218 220 //=========================================================================================================== 219 def notify_result(boolean promote, Exception err, String status, boolean log) {221 def notify_result(boolean bIsFullBuild, Exception err, String status, boolean log) { 220 222 echo 'Build completed, sending result notification' 221 if(promote) { 222 if( err ) { 223 promote_email(status) 224 } 225 } 226 else { 223 if(bIsFullBuild) { 227 224 email(status, log) 228 225 }
Note: See TracChangeset
for help on using the changeset viewer.