ADT
aaron-thesis
arm-eh
ast-experimental
cleanup-dtors
ctor
deferred_resn
demangler
enum
forall-pointer-decay
gc_noraii
jacob/cs343-translation
jenkins-sandbox
memory
new-ast
new-ast-unique-expr
new-env
no_list
persistent-indexer
pthread-emulation
qualifiedEnum
resolv-new
with_gc
|
Last change
on this file since f2b977a was f2b977a, checked in by Thierry Delisle <tdelisle@…>, 9 years ago |
|
now using token expander for email notification in jenkinsfile
|
-
Property mode
set to
100644
|
|
File size:
1.2 KB
|
| Line | |
|---|
| 1 |
|
|---|
| 2 | //Configurations for email format
|
|---|
| 3 | def email_subject_template = '[$PROJECT_NAME git] - branch $GIT_BRANCH - Build # $BUILD_NUMBER - $BUILD_STATUS!'
|
|---|
| 4 | def email_body_template = '''This is an automated email from the Jenkins build machine. It was
|
|---|
| 5 | generated because of a git hooks/post-receive script following
|
|---|
| 6 | a ref change was pushed to the repository containing
|
|---|
| 7 | the project "UNNAMED PROJECT".
|
|---|
| 8 |
|
|---|
| 9 | The branch $GIT_BRANCH has been updated
|
|---|
| 10 | via $GIT_COMMIT (commit)
|
|---|
| 11 | from $GIT_PREVIOUS_COMMIT (commit)
|
|---|
| 12 |
|
|---|
| 13 | Those revisions listed above that are new to this repository have
|
|---|
| 14 | not appeared on any other notification email; so we list those
|
|---|
| 15 | revisions in full, below.
|
|---|
| 16 |
|
|---|
| 17 | Check console output at $BUILD_URL to view the results.'''
|
|---|
| 18 |
|
|---|
| 19 | node ('master'){
|
|---|
| 20 | stage 'Build'
|
|---|
| 21 | //clean the repo and checkout the source code
|
|---|
| 22 | checkout scm
|
|---|
| 23 |
|
|---|
| 24 | //configure the conpilation
|
|---|
| 25 | sh 'CC=gcc-4.9 CXX=g++-4.9 ./configure'
|
|---|
| 26 |
|
|---|
| 27 | //build
|
|---|
| 28 | sh 'make -j 8'
|
|---|
| 29 |
|
|---|
| 30 | //send email notification
|
|---|
| 31 |
|
|---|
| 32 | def email_subject = TokenMacro.expand( build, listener, email_subject_template );
|
|---|
| 33 | def email_body = TokenMacro.expand( build, listener, email_body_template );
|
|---|
| 34 | def email_to = 'tdelisle@uwaterloo.ca'
|
|---|
| 35 |
|
|---|
| 36 | emailext body: email_body, subject: email_subject, to: email_to
|
|---|
| 37 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.