Changes in Jenkins/FullBuild [8089fde:867fca3]
- File:
-
- 1 edited
-
Jenkins/FullBuild (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Jenkins/FullBuild
r8089fde r867fca3 8 8 def err = null 9 9 10 final scmVars = checkout scm 11 final commitId = scmVars.GIT_COMMIT 12 10 13 try { 11 14 //Wrap build to add timestamp to command line … … 13 16 14 17 stage('Build') { 15 16 results = [null, null]17 18 18 19 parallel ( … … 31 32 32 33 stage('Package') { 33 build job: 'Cforall_Distribute_Ref', parameters: [string(name: 'GitRef', value: gitRefNewValue), string(name: 'Build', value: currentBuild.number)]34 build job: 'Cforall_Distribute_Ref', parameters: [string(name: 'GitRef', value: commitId), string(name: 'Build', value: currentBuild.number.toString())] 34 35 } 35 36 } … … 102 103 } 103 104 104 //Helper routine to collect information about the git history105 def collect_git_info() {106 107 //create the temporary output directory in case it doesn't already exist108 def out_dir = pwd tmp: true109 sh "mkdir -p ${out_dir}"110 111 //parse git logs to find what changed112 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 120 105 //=========================================================================================================== 121 106 //Routine responsible of sending the email notification once the build is completed
Note:
See TracChangeset
for help on using the changeset viewer.