Changes in Jenkins/FullBuild [4af1021:8089fde]
- File:
-
- 1 edited
-
Jenkins/FullBuild (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Jenkins/FullBuild
r4af1021 r8089fde 8 8 def err = null 9 9 10 final scmVars = checkout scm11 final commitId = scmVars.GIT_COMMIT12 13 10 try { 14 11 //Wrap build to add timestamp to command line … … 16 13 17 14 stage('Build') { 15 16 results = [null, null] 18 17 19 18 parallel ( … … 32 31 33 32 stage('Package') { 34 build job: 'Cforall_Distribute_Ref', parameters: [string(name: 'GitRef', value: commitId), string(name: 'Build', value: currentBuild.number)]33 build job: 'Cforall_Distribute_Ref', parameters: [string(name: 'GitRef', value: gitRefNewValue), string(name: 'Build', value: currentBuild.number)] 35 34 } 36 35 } … … 103 102 } 104 103 104 //Helper routine to collect information about the git history 105 def collect_git_info() { 106 107 //create the temporary output directory in case it doesn't already exist 108 def out_dir = pwd tmp: true 109 sh "mkdir -p ${out_dir}" 110 111 //parse git logs to find what changed 112 dir("../Cforall_Full_Build@script") { 113 sh "git reflog > ${out_dir}/GIT_COMMIT" 114 } 115 git_reflog = readFile("${out_dir}/GIT_COMMIT") 116 gitRefOldValue = (git_reflog =~ /moving from (.+) to (.+)/)[0][1] 117 gitRefNewValue = (git_reflog =~ /moving from (.+) to (.+)/)[0][2] 118 } 119 105 120 //=========================================================================================================== 106 121 //Routine responsible of sending the email notification once the build is completed
Note:
See TracChangeset
for help on using the changeset viewer.