Changeset 13c98a4 for Jenkinsfile
- Timestamp:
- Apr 24, 2019, 3:14:32 PM (6 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 3c40dc2a
- Parents:
- f85464da
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Jenkinsfile
rf85464da r13c98a4 66 66 finally { 67 67 //Send email with final results if this is not a full build 68 if( Settings && !Settings.Silent ) { 69 email(log_needed, Settings.IsSandbox) 70 } 68 email(log_needed) 71 69 72 70 echo 'Build Completed' … … 200 198 201 199 return """ 200 <pre> 202 201 The branch ${env.BRANCH_NAME} has been updated. 203 202 ${gitUpdate} 204 205 Check console output at ${env.BUILD_URL} to view the results. 206 207 - Status -------------------------------------------------------------- 208 209 BUILD# ${env.BUILD_NUMBER} - ${currentBuild.result} 210 211 - Log ----------------------------------------------------------------- 203 </pre> 204 205 <p>Check console output at ${env.BUILD_URL} to view the results.</p> 206 207 <p>- Status --------------------------------------------------------------</p> 208 209 <p>BUILD# ${env.BUILD_NUMBER} - ${currentBuild.result}</p> 210 211 <p>- Log -----------------------------------------------------------------</p> 212 213 <pre> 212 214 ${gitLog} 213 ----------------------------------------------------------------------- 215 </pre> 216 217 <p>-----------------------------------------------------------------------</p> 218 <pre> 214 219 Summary of changes: 215 220 ${gitDiff} 221 </pre> 216 222 """ 217 223 } 218 224 219 225 //Standard build email notification 220 def email(boolean log , boolean bIsSandbox) {226 def email(boolean log) { 221 227 //Since tokenizer doesn't work, figure stuff out from the environnement variables and command line 222 228 //Configurations for email format … … 225 231 def project_name = (env.JOB_NAME =~ /(.+)\/.+/)[0][1].toLowerCase() 226 232 def email_subject = "[${project_name} git][BUILD# ${env.BUILD_NUMBER} - ${currentBuild.result}] - branch ${env.BRANCH_NAME}" 227 def email_body = """ This is an automated email from the Jenkins build machine. It was233 def email_body = """<p>This is an automated email from the Jenkins build machine. It was 228 234 generated because of a git hooks/post-receive script following 229 a ref change which was pushed to the C forall repository.235 a ref change which was pushed to the C∀ repository.</p> 230 236 """ + GitLogMessage() 231 237 232 def email_to = "cforall@lists.uwaterloo.ca"233 234 if( Settings && !Settings. IsSandbox) {238 def email_to = !Settings.IsSandbox ? "cforall@lists.uwaterloo.ca" : "tdelisle@uwaterloo.ca" 239 240 if( Settings && !Settings.Silent ) { 235 241 //send email notification 236 242 emailext body: email_body, subject: email_subject, to: email_to, attachLog: log
Note: See TracChangeset
for help on using the changeset viewer.