- Timestamp:
- Sep 11, 2025, 11:35:17 PM (2 weeks ago)
- Branches:
- master
- Children:
- 8730e57
- Parents:
- a307552
- Location:
- Jenkins
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Jenkins/Distribute
ra307552 r0a10dc8 21 21 final commit, build 22 22 node { 23 24 23 //Wrap build to add timestamp to command line 25 24 wrap([$class: 'TimestamperBuildWrapper']) { … … 35 34 36 35 Tools.Clean() 37 38 36 Tools.Checkout( commit ) 39 40 37 Version = GetVersion( build ) 41 42 38 Configure() 43 44 39 Package() 45 46 40 Test() 47 48 41 Archive() 49 42 } … … 64 57 echo "Build Version: ${build}" 65 58 echo "Long Version: ${version}" 66 67 59 return version 68 60 } … … 119 111 def prepare_build() { 120 112 // prepare the properties 121 properties ([ 122 buildDiscarder(logRotator( 123 artifactDaysToKeepStr: '', 124 artifactNumToKeepStr: '', 125 daysToKeepStr: '730', 126 numToKeepStr: '1000' 127 )), 128 [$class: 'ParametersDefinitionProperty', 129 parameterDefinitions: [ 130 [$class: 'StringParameterDefinition', 131 description: 'The git commit to checkout', 132 name: 'GitRef', 133 defaultValue: '', 134 ], 135 [$class: 'StringParameterDefinition', 136 description: 'Build Number to put into the version', 137 name: 'Build', 138 defaultValue: '0', 139 ], 113 properties ([ \ 114 buildDiscarder(logRotator( \ 115 artifactDaysToKeepStr: '', \ 116 artifactNumToKeepStr: '', \ 117 daysToKeepStr: '730', \ 118 numToKeepStr: '1000' \ 119 )), \ 120 [$class: 'ParametersDefinitionProperty', \ 121 parameterDefinitions: [ \ 122 [$class: 'StringParameterDefinition', \ 123 description: 'The git commit to checkout', \ 124 name: 'GitRef', \ 125 defaultValue: '', \ 126 ], \ 127 [$class: 'StringParameterDefinition', \ 128 description: 'Build Number to put into the version', \ 129 name: 'Build', \ 130 defaultValue: '0', \ 131 ], \ 140 132 ], 141 133 ]]) -
Jenkins/Promote
ra307552 r0a10dc8 1 1 #!groovy 2 2 3 // Globals 4 @Field def BuildDir = pwd tmp: true 5 @Field def SrcDir = pwd tmp: false 6 @Field def RemoteRepo = 'git@github.com:cforall/cforall.git' 7 @Field def ArchiveUrl = 'https://cforall.uwaterloo.ca/jenkins/job/Cforall_Distribute_Ref/lastSuccessfulBuild/artifact/*zip*/archive.zip' 8 9 // Local variables 10 def err = null 11 def log_needed = false 12 3 13 node { 4 // Globals5 BuildDir = pwd tmp: true6 SrcDir = pwd tmp: false7 RemoteRepo = 'git@github.com:cforall/cforall.git'8 ArchiveUrl = 'https://cforall.uwaterloo.ca/jenkins/job/Cforall_Distribute_Ref/lastSuccessfulBuild/artifact/*zip*/archive.zip'9 10 // Local variables11 def err = null12 def log_needed = false13 14 14 currentBuild.result = "SUCCESS" 15 15 16 // Wrap build to add timestamp to command line16 // Wrap build to add timestamp to command line 17 17 wrap([$class: 'TimestamperBuildWrapper']) { 18 19 18 PrepRepo(); 20 21 19 def name = GetArchive(); 22 23 20 PushRepo(name); 24 21 } 25 26 22 } 27 23 … … 59 55 } 60 56 } 61 62 57 return tarball 63 58 }
Note:
See TracChangeset
for help on using the changeset viewer.