Changeset 0797198
- Timestamp:
- Dec 3, 2020, 5:03:54 PM (4 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 55da258
- Parents:
- 8e655f7c (diff), 91aa5ab (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:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Jenkinsfile
r8e655f7c r0797198 2 2 3 3 import groovy.transform.Field 4 5 // For skipping stages6 import org.jenkinsci.plugins.pipeline.modeldefinition.Utils7 4 8 5 //=========================================================================================================== … … 15 12 SrcDir = pwd tmp: false 16 13 Settings = null 17 StageName = ''14 Tools = null 18 15 19 16 // Local variables … … 66 63 67 64 //Store the result of the build log 68 currentBuild.result = "${ StageName} FAILURE".trim()65 currentBuild.result = "${tools.StageName} FAILURE".trim() 69 66 } 70 67 … … 85 82 //=========================================================================================================== 86 83 def clean() { 87 build_stage('Cleanup', true) {84 Tools.BuildStage('Cleanup', true) { 88 85 // clean the build by wipping the build directory 89 86 dir(BuildDir) { … … 95 92 //Compilation script is done here but environnement set-up and error handling is done in main loop 96 93 def checkout() { 97 build_stage('Checkout', true) {94 Tools.BuildStage('Checkout', true) { 98 95 //checkout the source code and clean the repo 99 96 final scmVars = checkout scm … … 108 105 debug = true 109 106 release = Settings.RunAllTests || Settings.RunBenchmark 110 build_stage('Build : configure', true) {107 Tools.BuildStage('Build : configure', true) { 111 108 // Configure must be run inside the tree 112 109 dir (SrcDir) { … … 136 133 } 137 134 138 build_stage('Build : cfa-cpp', true) {135 Tools.BuildStage('Build : cfa-cpp', true) { 139 136 // Build outside of the src tree to ease cleaning 140 137 dir (BuildDir) { … … 147 144 } 148 145 149 build_stage('Build : libcfa(debug)', debug) {146 Tools.BuildStage('Build : libcfa(debug)', debug) { 150 147 // Build outside of the src tree to ease cleaning 151 148 dir (BuildDir) { … … 154 151 } 155 152 156 build_stage('Build : libcfa(nodebug)', release) {153 Tools.BuildStage('Build : libcfa(nodebug)', release) { 157 154 // Build outside of the src tree to ease cleaning 158 155 dir (BuildDir) { … … 161 158 } 162 159 163 build_stage('Build : install', true) {160 Tools.BuildStage('Build : install', true) { 164 161 // Build outside of the src tree to ease cleaning 165 162 dir (BuildDir) { … … 171 168 def test() { 172 169 try { 173 build_stage('Test: short', !Settings.RunAllTests) {170 Tools.BuildStage('Test: short', !Settings.RunAllTests) { 174 171 dir (BuildDir) { 175 172 //Run the tests from the tests directory … … 178 175 } 179 176 180 build_stage('Test: full', Settings.RunAllTests) {177 Tools.BuildStage('Test: full', Settings.RunAllTests) { 181 178 dir (BuildDir) { 182 179 //Run the tests from the tests directory … … 196 193 197 194 def benchmark() { 198 build_stage('Benchmark', Settings.RunBenchmark) {195 Tools.BuildStage('Benchmark', Settings.RunBenchmark) { 199 196 dir (BuildDir) { 200 197 //Append bench results … … 205 202 206 203 def build_doc() { 207 build_stage('Documentation', Settings.BuildDocumentation) {204 Tools.BuildStage('Documentation', Settings.BuildDocumentation) { 208 205 dir ('doc/user') { 209 206 make_doc() … … 217 214 218 215 def publish() { 219 build_stage('Publish', true) {216 Tools.BuildStage('Publish', true) { 220 217 221 218 if( Settings.Publish && !Settings.RunBenchmark ) { echo 'No results to publish!!!' } … … 506 503 ]]) 507 504 508 // It's unfortunate but it looks like we need to checkout the entire repo just to get the pretty git printer 505 // It's unfortunate but it looks like we need to checkout the entire repo just to get 506 // - the pretty git printer 507 // - Jenkins.tools 509 508 checkout scm 509 510 Tools = load "Jenkins/tools.groovy" 510 511 511 512 final settings = new BuildSettings(params, env.BRANCH_NAME) … … 515 516 516 517 return settings 517 }518 519 def build_stage(String name, boolean run, Closure block ) {520 StageName = name521 echo " -------- ${StageName} -------- "522 if(run) {523 stage(name, block)524 } else {525 stage(name) { Utils.markStageSkippedForConditional(STAGE_NAME) }526 }527 518 } 528 519
Note: See TracChangeset
for help on using the changeset viewer.