Changeset bd50205 for Jenkinsfile
- Timestamp:
- Jun 8, 2021, 9:22:55 PM (3 years ago)
- Branches:
- ADT, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 53d34343, cc5544a
- Parents:
- e018546
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Jenkinsfile
re018546 rbd50205 226 226 //Standard build email notification 227 227 def email(boolean log) { 228 //Since tokenizer doesn't work, figure stuff out from the environnement variables and command line 229 //Configurations for email format 230 echo 'Notifying users of result' 231 232 def project_name = (env.JOB_NAME =~ /(.+)\/.+/)[0][1].toLowerCase() 233 def email_subject = "[${project_name} git][BUILD# ${env.BUILD_NUMBER} - ${currentBuild.result}] - branch ${env.BRANCH_NAME}" 234 def email_body = """<p>This is an automated email from the Jenkins build machine. It was 235 generated because of a git hooks/post-receive script following 236 a ref change which was pushed to the C\u2200 repository.</p> 237 """ + Tools.GitLogMessage() 238 239 def email_to = !Settings.IsSandbox ? "cforall@lists.uwaterloo.ca" : "tdelisle@uwaterloo.ca" 240 241 if( Settings && !Settings.Silent ) { 242 //send email notification 243 emailext body: email_body, subject: email_subject, to: email_to, attachLog: log 244 } else { 245 echo "Would send email to: ${email_to}" 246 echo "With title: ${email_subject}" 247 echo "Content: \n${email_body}" 228 node { 229 //Since tokenizer doesn't work, figure stuff out from the environnement variables and command line 230 //Configurations for email format 231 echo 'Notifying users of result' 232 233 def project_name = (env.JOB_NAME =~ /(.+)\/.+/)[0][1].toLowerCase() 234 def email_subject = "[${project_name} git][BUILD# ${env.BUILD_NUMBER} - ${currentBuild.result}] - branch ${env.BRANCH_NAME}" 235 def email_body = """<p>This is an automated email from the Jenkins build machine. It was 236 generated because of a git hooks/post-receive script following 237 a ref change which was pushed to the C\u2200 repository.</p> 238 """ + Tools.GitLogMessage() 239 240 def email_to = !Settings.IsSandbox ? "cforall@lists.uwaterloo.ca" : "tdelisle@uwaterloo.ca" 241 242 if( Settings && !Settings.Silent ) { 243 //send email notification 244 emailext body: email_body, subject: email_subject, to: email_to, attachLog: log 245 } else { 246 echo "Would send email to: ${email_to}" 247 echo "With title: ${email_subject}" 248 echo "Content: \n${email_body}" 249 } 248 250 } 249 251 }
Note: See TracChangeset
for help on using the changeset viewer.