Changes in Jenkins/FullBuild [920725d:cb2e8ce]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Jenkins/FullBuild
r920725d rcb2e8ce 32 32 checkout scm 33 33 34 collect_git_info()35 36 34 //parse git logs to find what changed 37 35 sh "git remote > ${out_dir}/GIT_REMOTE" … … 44 42 45 43 sh "git push DoLang ${gitRefNewValue}:master" 46 }47 48 //Helper routine to collect information about the git history49 def collect_git_info() {50 51 //create the temporary output directory in case it doesn't already exist52 def out_dir = pwd tmp: true53 sh "mkdir -p ${out_dir}"54 55 //parse git logs to find what changed56 gitRefName = env.BRANCH_NAME57 dir("../${gitRefName}@script") {58 sh "git reflog > ${out_dir}/GIT_COMMIT"59 }60 git_reflog = readFile("${out_dir}/GIT_COMMIT")61 gitRefOldValue = (git_reflog =~ /moving from (.+) to (.+)/)[0][1]62 gitRefNewValue = (git_reflog =~ /moving from (.+) to (.+)/)[0][2]63 44 } 64 45
Note: See TracChangeset
for help on using the changeset viewer.