Changeset ecb4955
- Timestamp:
- Jun 8, 2016, 5:15:41 PM (9 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:
- dd40c54
- Parents:
- 03ccadd (diff), b8f8696 (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. - Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
Jenkinsfile
r03ccadd recb4955 35 35 } 36 36 37 def push_build() { 38 build_stage 'Push' 39 40 def out_dir = pwd tmp: true 41 sh "mkdir -p ${out_dir}" 42 43 //parse git logs to find what changed 44 sh "git remote > ${out_dir}/GIT_REMOTE" 45 git_remote = readFile("${out_dir}/GIT_REMOTE") 46 remoteDoLangExists = git_remote.contains("DoLang") 47 48 if( !remoteDoLangExists ) { 49 sh 'git remote add DoLang git@gitlab.do-lang.org:internal/cfa-cc.git' 50 } 51 52 sh 'git push DoLang master' 53 } 54 37 55 //=========================================================================================================== 38 56 // Helper classes/variables/routines to make the status and stage name easier to use … … 67 85 def collect_git_info() { 68 86 87 //create the temporary output directory in case it doesn't already exist 69 88 def out_dir = pwd tmp: true 89 sh "mkdir -p ${out_dir}" 90 91 //parse git logs to find what changed 70 92 gitRefName = env.BRANCH_NAME 71 93 dir("../${gitRefName}@script") { … … 82 104 node ('master'){ 83 105 106 boolean doPromoteBuild2DoLang 84 107 def err = null 85 108 def log_needed = false … … 96 119 collect_git_info() 97 120 121 properties ([ \ 122 [$class: 'ParametersDefinitionProperty', \ 123 parameterDefinitions: [ \ 124 [$class: 'BooleanParameterDefinition', \ 125 defaultValue: false, \ 126 description: 'If true, the build will be promoted to the do-lang git repository (on successful builds only)', \ 127 name: 'promoteBuild2DoLang' \ 128 ]] \ 129 ]]) 130 131 doPromoteBuild2DoLang = promoteBuild2DoLang == 'true' 132 133 echo "FULL BUILD = ${doPromoteBuild2DoLang}" 134 98 135 //Compile using gcc-4.9 99 136 currentCC = new CC_Desc('gcc-4.9', 'g++-4.9', 'gcc-4.9') … … 108 145 cfa_build() 109 146 147 if( doPromoteBuild2DoLang ) { 148 push_build() 149 } 110 150 } 111 151 } … … 127 167 finally { 128 168 //Send email with final results 129 email(currentBuild.result, log_needed)169 notify_result(doPromoteBuild2DoLang, err != null, currentBuild.result, log_needed) 130 170 131 171 /* Must re-throw exception to propagate error */ … … 139 179 //Routine responsible of sending the email notification once the build is completed 140 180 //=========================================================================================================== 181 def notify_result(boolean promote, boolean success, String status, boolean log) { 182 if(promote) { 183 if( !success ) { 184 promote_email(status) 185 } 186 } 187 else { 188 email(status, log) 189 } 190 } 191 192 //Email notification on a full build failure 193 def promote_email(String status) { 194 //Since tokenizer doesn't work, figure stuff out from the environnement variables and command line 195 //Configurations for email format 196 def email_subject = "[cforall git][PROMOTE - FAILURE]" 197 def email_body = """This is an automated email from the Jenkins build machine. It was 198 generated because of a git hooks/post-receive script following 199 a ref change was pushed to the repository containing 200 the project "UNNAMED PROJECT". 201 202 Check console output at ${env.BUILD_URL} to view the results. 203 204 - Status -------------------------------------------------------------- 205 206 PROMOTE FAILURE - ${status} 207 """ 208 209 def email_to = "pabuhr@uwaterloo.ca, rschlunt@uwaterloo.ca, a3moss@uwaterloo.ca, tdelisle@uwaterloo.ca, brice.dobry@huawei.com" 210 211 //send email notification 212 emailext body: email_body, subject: email_subject, to: email_to, attachLog: true 213 } 214 215 //Standard build email notification 141 216 def email(String status, boolean log) { 142 217 //Since tokenizer doesn't work, figure stuff out from the environnement variables and command line … … 157 232 158 233 The branch ${env.BRANCH_NAME} has been updated. 159 160 234 via ${gitRefOldValue} (commit) 235 from ${gitRefNewValue} (commit) 161 236 162 237 Check console output at ${env.BUILD_URL} to view the results. -
src/libcfa/Makefile.am
r03ccadd recb4955 11 11 ## Created On : Sun May 31 08:54:01 2015 12 12 ## Last Modified By : Peter A. Buhr 13 ## Last Modified On : Tue Jun 7 14:38:18201614 ## Update Count : 1 4213 ## Last Modified On : Wed Jun 8 14:20:34 2016 14 ## Update Count : 165 15 15 ############################################################################### 16 16 … … 54 54 55 55 headers = limits stdlib math iostream fstream iterator rational 56 .PRECIOUS : ${headers} # stop implicit '.o' rules from removing extensionless headers 56 libobjs = ${headers:=.o} 57 57 58 #.SECONDARY : ${headers} # stop implicit '.o' rules from removing extensionless headers 58 # extensionless header files are overridden by -o flag in default makerule => explicitly override default rule to silently do nothing 59 % : %.c 60 @true 59 61 62 ${libobjs} : ${abs_top_srcdir}/src/driver/cfa-cpp # add dependency to cfa-cpp so all libraries are rebuilt with new translator 60 63 61 64 libcfa_a_SOURCES = libcfa-prelude.c ${headers:=.c} -
src/libcfa/Makefile.in
r03ccadd recb4955 215 215 ${addprefix ${libdir}/,${lib_LIBRARIES}} ${includedir}/* 216 216 headers = limits stdlib math iostream fstream iterator rational 217 libobjs = ${headers:=.o} 217 218 libcfa_a_SOURCES = libcfa-prelude.c ${headers:=.c} 218 219 include_HEADERS = ${headers} … … 587 588 libcfa-prelude.o : libcfa-prelude.c 588 589 @BACKEND_CC@ -c -o $@ $< 589 .SECONDARY : ${headers} # stop implicit '.o' rules from removing extensionless headers 590 591 # extensionless header files are overridden by -o flag in default makerule => explicitly override default rule to silently do nothing 592 % : %.c 593 @true 594 595 ${libobjs} : ${abs_top_srcdir}/src/driver/cfa-cpp # add dependency to cfa-cpp so all libraries are rebuilt with new translator 590 596 591 597 # Tell versions [3.59,3.63) of GNU make to not export all variables.
Note: See TracChangeset
for help on using the changeset viewer.