Changes in Jenkins/Distribute [ad915e0:6c9e0bc]
- File:
-
- 1 edited
-
Jenkins/Distribute (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Jenkins/Distribute
rad915e0 r6c9e0bc 26 26 wrap([$class: 'TimestamperBuildWrapper']) { 27 27 28 final commit, build 29 (commit, build) = prepare_build() 28 final commit = prepare_build() 30 29 31 30 node('x64') { … … 36 35 37 36 Tools.Checkout( commit ) 38 39 final version = GetVersion( build )40 37 } 41 38 … … 77 74 // Main compilation routines 78 75 //=========================================================================================================== 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()84 76 85 final version = "${pver}.${build}"86 77 87 echo "Package Version: ${pver}" 88 echo "Build Version: ${build}" 89 echo "Long Version: ${version}" 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 90 85 91 return version 92 }93 86 // echo GitLogMessage() 87 // } 88 // } 94 89 95 90 //=========================================================================================================== … … 112 107 defaultValue: '', \ 113 108 ], \ 114 [$class: 'StringParameterDefinition', \115 description: 'Build Number to put into the version', \116 name: 'Build', \117 defaultValue: '0', \118 ], \119 109 ], 120 110 ]]) … … 131 121 echo "Distributing git commit ${ref}" 132 122 133 return [params.GitRef, params.Build]123 return params.GitRef 134 124 } 135 125
Note:
See TracChangeset
for help on using the changeset viewer.