Changeset 1dec8f3 for Jenkins/Promote
- Timestamp:
- Sep 22, 2025, 2:33:42 PM (5 months ago)
- Branches:
- master
- Children:
- bb5b866
- Parents:
- 7ca6bf1 (diff), 295ed2d1 (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/Promote (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Jenkins/Promote
r7ca6bf1 r1dec8f3 1 1 #!groovy 2 2 3 import groovy.transform.Field 4 5 // Globals 6 @Field def BuildDir = null 7 @Field def SrcDir = null 8 @Field def RemoteRepo = '' 9 @Field def ArchiveUrl = '' 10 11 // Local variables 12 def err = null 13 def log_needed = false 14 3 15 node { 4 // Globals5 16 BuildDir = pwd tmp: true 6 17 SrcDir = pwd tmp: false 7 18 RemoteRepo = 'git@github.com:cforall/cforall.git' 8 19 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 20 currentBuild.result = "SUCCESS" 15 21 16 // Wrap build to add timestamp to command line22 // Wrap build to add timestamp to command line 17 23 wrap([$class: 'TimestamperBuildWrapper']) { 18 19 24 PrepRepo(); 20 21 25 def name = GetArchive(); 22 23 26 PushRepo(name); 24 27 } 25 26 28 } 27 29 … … 36 38 dir (BuildDir) { 37 39 sh 'rm -rf *' 38 sshagent (credentials: ['git _key_mar27']) {40 sshagent (credentials: ['github_sep2025']) { 39 41 sh "git clone --bare ${RemoteRepo} repo" 40 42 } … … 59 61 } 60 62 } 61 62 63 return tarball 63 64 } … … 69 70 sh "git status" 70 71 sh "git diff-index --quiet HEAD || git commit -m 'Push from build machine: ${name}'" 71 sshagent (credentials: ['git _key_mar27']) {72 sshagent (credentials: ['github_sep2025']) { 72 73 sh "git push origin master" 73 74 }
Note:
See TracChangeset
for help on using the changeset viewer.