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