source: Jenkinsfile @ 018fac4

Last change on this file since 018fac4 was 018fac4, checked in by Thierry Delisle <tdelisle@…>, 8 years ago

testing token replacement in jenkins file to format email

  • Property mode set to 100644
File size: 1018 bytes
2//Configurations for email format
3def email_subject = '[$PROJECT_NAME git] - branch $GIT_BRANCH - Build # $BUILD_NUMBER - $BUILD_STATUS!'
4def email_body = '''This is an automated email from the Jenkins build machine. It was
5generated because of a git hooks/post-receive script following
6a ref change was pushed to the repository containing
7the project "UNNAMED PROJECT".
9The branch $GIT_BRANCH has been updated
10       via  $GIT_COMMIT (commit)
11      from  $GIT_PREVIOUS_COMMIT (commit)
13Those revisions listed above that are new to this repository have
14not appeared on any other notification email; so we list those
15revisions in full, below.
17Check console output at $BUILD_URL to view the results.'''
19node ('master'){
20  stage 'Build'
21  checkout scm //checkout the source code from source control
22  sh 'CC=gcc-4.9 CXX=g++-4.9 ./configure'
23  sh 'make -j 8'
24  //emailext body: email_body, subject: email_subject, to: ''
25  emailext body: '$DEFAULT_CONTENT', subject: '$DEFAULT_SUBJECT', to: ''
26 }
Note: See TracBrowser for help on using the repository browser.