Changeset 21eb693 for Jenkinsfile
- Timestamp:
- Jun 20, 2016, 3:05:35 PM (10 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:
- 554a0db
- Parents:
- a0dcd2e (diff), 0a346e5 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
Jenkinsfile (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Jenkinsfile
ra0dcd2e r21eb693 5 5 //=========================================================================================================== 6 6 //Compilation script is done here but environnement set-up and error handling is done in main loop 7 def cfa_build( ) {7 def cfa_build(boolean full_build) { 8 8 build_stage 'Checkout' 9 9 def install_dir = pwd tmp: true 10 10 //checkout the source code and clean the repo 11 11 checkout scm 12 13 //Clean all temporary files to make sure no artifacts of the previous build remain 12 14 sh 'git clean -fdqx' 15 16 //Reset the git repo so no local changes persist 13 17 sh 'git reset --hard' 14 18 … … 26 30 build_stage 'Test' 27 31 28 //Run the tests from the exampledirectory32 //Run the tests from the tests directory 29 33 dir ('src/tests') { 30 sh './runTests.sh' 34 if (full_build) { 35 sh 'python test.py --all' 36 } 37 else { 38 sh './runTests.sh' 39 } 31 40 } 32 41 … … 140 149 //Compile using gcc-4.9 141 150 currentCC = new CC_Desc('gcc-4.9', 'g++-4.9', 'gcc-4.9') 142 cfa_build( )151 cfa_build(doPromoteBuild2DoLang) 143 152 144 153 //Compile using gcc-5 145 154 currentCC = new CC_Desc('gcc-5', 'g++-5', 'gcc-5') 146 cfa_build( )155 cfa_build(doPromoteBuild2DoLang) 147 156 148 157 //Compile using gcc-4.9 149 158 currentCC = new CC_Desc('gcc-6', 'g++-6', 'gcc-6') 150 cfa_build( )159 cfa_build(doPromoteBuild2DoLang) 151 160 152 161 if( doPromoteBuild2DoLang ) { … … 185 194 //=========================================================================================================== 186 195 def notify_result(boolean promote, Exception err, String status, boolean log) { 196 echo 'Build completed, sending result notification' 187 197 if(promote) { 188 198 if( err ) { … … 224 234 def project_name = (env.JOB_NAME =~ /(.+)\/.+/)[0][1].toLowerCase() 225 235 226 sh "git rev-list --format=short ${gitRefOldValue}...${gitRefNewValue} > GIT_LOG" 227 def gitLog = readFile('GIT_LOG') 228 229 sh "git diff --stat ${gitRefNewValue} ${gitRefOldValue} > GIT_DIFF" 230 def gitDiff = readFile('GIT_DIFF') 236 def gitLog = 'Error retrieving git logs' 237 def gitDiff = 'Error retrieving git diff' 238 239 try { 240 241 sh "git rev-list --format=short ${gitRefOldValue}...${gitRefNewValue} > GIT_LOG" 242 gitLog = readFile('GIT_LOG') 243 244 sh "git diff --stat ${gitRefNewValue} ${gitRefOldValue} > GIT_DIFF" 245 gitDiff = readFile('GIT_DIFF') 246 } 247 catch (Exception error) {} 231 248 232 249 def email_subject = "[${project_name} git][BUILD# ${env.BUILD_NUMBER} - ${status}] - branch ${env.BRANCH_NAME}"
Note:
See TracChangeset
for help on using the changeset viewer.