Changeset 8fe6040
- Timestamp:
- Dec 4, 2020, 3:10:55 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:
- 6b293bd
- Parents:
- 9c4ad67
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Jenkins/Distribute
r9c4ad67 r8fe6040 26 26 wrap([$class: 'TimestamperBuildWrapper']) { 27 27 28 final commit= prepare_build()28 final (commit, build) = prepare_build() 29 29 30 30 node('x64') { … … 35 35 36 36 Tools.Checkout( commit ) 37 38 final version = GetVersion( build ) 37 39 } 38 40 … … 74 76 // Main compilation routines 75 77 //=========================================================================================================== 78 def GetVersion(build) { 79 final pver = "sed 's/AC_INIT(\[cfa-cc\],\[\(.*\)\],\[cforall@plg.uwaterloo.ca\])/\1/;t;d' ${SrcDir} configure.ac" 80 final version = "${pver}.${build}" 76 81 82 echo "Package Version: ${pver}" 83 echo "Build Version: ${build}" 84 echo "Long Version: ${version}" 77 85 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 86 return version 87 } 85 88 86 // echo GitLogMessage()87 // }88 // }89 89 90 90 //=========================================================================================================== … … 107 107 defaultValue: '', \ 108 108 ], \ 109 [$class: 'StringParameterDefinition', \ 110 description: 'Build Number to put into the version', \ 111 name: 'Build', \ 112 defaultValue: '0', \ 113 ], \ 109 114 ], 110 115 ]]) … … 121 126 echo "Distributing git commit ${ref}" 122 127 123 return params.GitRef128 return [params.GitRef, params.Build] 124 129 } 125 130
Note: See TracChangeset
for help on using the changeset viewer.