Changeset ec5d599 for Jenkins/Distribute
- Timestamp:
- Dec 5, 2020, 8:48:42 AM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- e91a255
- Parents:
- 7c1144b (diff), ad915e0 (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
-
Jenkins/Distribute (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Jenkins/Distribute
r7c1144b rec5d599 26 26 wrap([$class: 'TimestamperBuildWrapper']) { 27 27 28 final commit = prepare_build() 28 final commit, build 29 (commit, build) = prepare_build() 29 30 30 31 node('x64') { … … 35 36 36 37 Tools.Checkout( commit ) 38 39 final version = GetVersion( build ) 37 40 } 38 41 … … 74 77 // Main compilation routines 75 78 //=========================================================================================================== 79 def GetVersion(build) { 80 final pver = sh( 81 returnStdout: true, 82 script: "sed 's/AC_INIT(\\[cfa-cc\\],\\[\\(.*\\)\\],\\[cforall@plg.uwaterloo.ca\\])/\\1/;t;d' ${SrcDir}/configure.ac" 83 ).trim() 76 84 85 final version = "${pver}.${build}" 77 86 78 //Compilation script is done here but environnement set-up and error handling is done in main loop 79 // def checkout() { 80 // build_stage('Checkout', true) { 81 // //checkout the source code and clean the repo 82 // final scmVars = checkout scm 83 // Settings.GitNewRef = scmVars.GIT_COMMIT 84 // Settings.GitOldRef = scmVars.GIT_PREVIOUS_COMMIT 87 echo "Package Version: ${pver}" 88 echo "Build Version: ${build}" 89 echo "Long Version: ${version}" 85 90 86 // echo GitLogMessage() 87 //}88 // } 91 return version 92 } 93 89 94 90 95 //=========================================================================================================== … … 107 112 defaultValue: '', \ 108 113 ], \ 114 [$class: 'StringParameterDefinition', \ 115 description: 'Build Number to put into the version', \ 116 name: 'Build', \ 117 defaultValue: '0', \ 118 ], \ 109 119 ], 110 120 ]]) … … 121 131 echo "Distributing git commit ${ref}" 122 132 123 return params.GitRef133 return [params.GitRef, params.Build] 124 134 } 125 135
Note:
See TracChangeset
for help on using the changeset viewer.