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 7aebc62 was 7aebc62, checked in by Thierry Delisle <tdelisle@…>, 10 years ago |
|
Jenkins: testing multi node setup
|
-
Property mode
set to
100644
|
|
File size:
1.3 KB
|
| Rev | Line | |
|---|
| [c9d651d] | 1 |
|
|---|
| 2 |
|
|---|
| [7aebc62] | 3 | //clean the repo and checkout the source code
|
|---|
| 4 | stage 'Checkout'
|
|---|
| 5 | node {
|
|---|
| [f2b977a] | 6 | checkout scm
|
|---|
| [23a14d86] | 7 | sh 'git clean -f'
|
|---|
| [7aebc62] | 8 | }
|
|---|
| [23a14d86] | 9 |
|
|---|
| [7aebc62] | 10 |
|
|---|
| 11 | stage 'Build'
|
|---|
| 12 | node ('master'){
|
|---|
| [23a14d86] | 13 | //configure the conpilation
|
|---|
| 14 | sh 'make maintainer-clean'
|
|---|
| 15 | sh 'CC=gcc-4.9 CXX=g++-4.9 ./configure'
|
|---|
| 16 | sh 'make -j 8'
|
|---|
| [7aebc62] | 17 | sh 'blarg'
|
|---|
| 18 | }
|
|---|
| [f2b977a] | 19 |
|
|---|
| [7aebc62] | 20 | stage 'Notify'
|
|---|
| 21 | node {
|
|---|
| [a3f9946] | 22 | //Since tokenizer doesn't work, figure stuff out from the environnement variables and command line
|
|---|
| [23a14d86] | 23 | //Configurations for email format
|
|---|
| [a3f9946] | 24 | def project_name = (env.JOB_NAME =~ /(.+)\/.+/)[0][1]
|
|---|
| 25 |
|
|---|
| 26 | def email_subject = "[${project_name} git] - branch ${env.BRANCH_NAME} - Build # ${env.BUILD_NUMBER} - BUILD_STATUS!"
|
|---|
| 27 | def email_body = """This is an automated email from the Jenkins build machine. It was
|
|---|
| 28 | generated because of a git hooks/post-receive script following
|
|---|
| 29 | a ref change was pushed to the repository containing
|
|---|
| 30 | the project "UNNAMED PROJECT".
|
|---|
| 31 |
|
|---|
| 32 | The branch ${env.BRANCH_NAME} has been updated
|
|---|
| 33 | via GIT_COMMIT (commit)
|
|---|
| 34 | from GIT_PREVIOUS_COMMIT (commit)
|
|---|
| 35 |
|
|---|
| 36 | Those revisions listed above that are new to this repository have
|
|---|
| 37 | not appeared on any other notification email; so we list those
|
|---|
| 38 | revisions in full, below.
|
|---|
| 39 |
|
|---|
| 40 | Check console output at ${env.BUILD_URL} to view the results."""
|
|---|
| [3410c12] | 41 |
|
|---|
| [63fe9f1d] | 42 | def email_to = 'tdelisle@uwaterloo.ca'
|
|---|
| 43 |
|
|---|
| [f2b977a] | 44 | //send email notification
|
|---|
| [d42fa1f] | 45 | emailext body: email_body, subject: email_subject, to: email_to, attachLog: true
|
|---|
| [7aebc62] | 46 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.