Changeset c3d3c22 for Jenkins/Distribute
- Timestamp:
- Dec 3, 2020, 8:49:59 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:
- d29a394
- Parents:
- f78ead5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Jenkins/Distribute
rf78ead5 rc3d3c22 26 26 wrap([$class: 'TimestamperBuildWrapper']) { 27 27 28 build_id= prepare_build()28 gitref = prepare_build() 29 29 30 30 node('x64') { … … 34 34 Tools.clean() 35 35 36 // checkout()36 Tools.checkout(gitref) 37 37 } 38 38 … … 103 103 parameterDefinitions: [ \ 104 104 [$class: 'StringParameterDefinition', \ 105 description: 'The build to put in the version', \106 name: ' Build', \105 description: 'The git commit to checkout', \ 106 name: 'GitRef', \ 107 107 defaultValue: '', \ 108 108 ], \ … … 117 117 Tools = load "Jenkins/tools.groovy" 118 118 119 currentBuild.description = "Distributing Binaries" 119 currentBuild.description = "Distributing Tarball" 120 def ref = params.GitRef ? params.GitRef : "HEAD" 121 echo "Distributing git commit ${ref}" 120 122 121 if (!params.Build) { 122 params.Build = Jenkins.instance.getItem('Cforall Full Build').lastSuccessfulBuild.number 123 } 124 125 echo "Distributing build ${params.Build}" 126 127 return params.Build 123 return params.GitRef 128 124 } 129 125
Note: See TracChangeset
for help on using the changeset viewer.