Changeset 992c26d
- Timestamp:
- Jun 3, 2016, 11:07:36 AM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 29f4fe62
- Parents:
- a3e7d34
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Jenkinsfile
ra3e7d34 r992c26d 2 2 def build() { 3 3 build_stage 'Checkout' 4 4 def install_dir = pwd tmp: true 5 5 //checkout the source code and clean the repo 6 sh 'rm -rf *'6 sh "rm -rf * ${install_dir}/*" 7 7 checkout scm 8 8 … … 13 13 //escapes the sandbox 14 14 //Also specify the compiler by hand 15 def install_dir = pwd tmp: true 16 sh "CC=gcc-4.9 CXX=g++-4.9 ./configure --prefix=${install_dir} > /dev/null" 15 sh "./configure CXX=${currentCC.cpp-cc} --with-backend-compiler=${currentCC.cfa-backend-cc} --prefix=${install_dir} > /dev/null" 17 16 18 17 //Compile the project … … 32 31 } 33 32 34 def Compiler 33 class CC_Desc { 34 String name 35 String cpp-cc 36 String cfa-backend-cc 37 } 38 39 def currentCC 35 40 36 41 def build_stage(String name) { 37 def stage_name = "${ Compiler} ${name}"42 def stage_name = "${currentCC.name} ${name}".trim() 38 43 stage stage_name 39 44 … … 49 54 50 55 try { 51 Compiler = 'gcc-4.9'56 currentCC = ['gcc-4.9', 'g++-4.9', 'gcc-4.9'] as CC_Desc 52 57 build() 53 58 … … 57 62 err = caughtError 58 63 log_needed = true 59 currentBuild.result = "${status_prefix} FAILURE" 64 currentBuild.result = "${status_prefix} FAILURE".trim() 60 65 } 61 66 … … 76 81 def project_name = (env.JOB_NAME =~ /(.+)\/.+/)[0][1].toLowerCase() 77 82 78 def email_subject = "[${project_name} git][BUILD - ${status}!]Build # ${env.BUILD_NUMBER} -${env.BRANCH_NAME}"83 def email_subject = "[${project_name} git][BUILD# ${env.BUILD_NUMBER} - ${status}] - branch ${env.BRANCH_NAME}" 79 84 def email_body = """This is an automated email from the Jenkins build machine. It was 80 85 generated because of a git hooks/post-receive script following
Note: See TracChangeset
for help on using the changeset viewer.