source: Jenkinsfile @ d3d0069

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 d3d0069 was d3d0069, checked in by Thierry Delisle <tdelisle@…>, 8 years ago

testing exceptions to react on build failures

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