Changeset ab60d6d for Jenkinsfile
- Timestamp:
- Jun 6, 2016, 12:37:44 PM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- d5f1cfc, efbca69
- Parents:
- 7b1a604
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Jenkinsfile
r7b1a604 rab60d6d 64 64 } 65 65 66 //Helper routine to collect information about the git history 67 def collect_git_info() { 68 69 def out_dir = pwd tmp: true 70 gitRefName = env.BRANCH_NAME 71 dir("../${gitRefName}@script") { 72 sh "git reflog > ${out_dir}/GIT_COMMIT" 73 } 74 git_reflog = readFile("${out_dir}/GIT_COMMIT") 75 gitRefOldValue = (git_reflog =~ /moving from (.+) to (.+)/)[0][1] 76 gitRefNewValue = (git_reflog =~ /moving from (.+) to (.+)/)[0][2] 77 } 78 66 79 //=========================================================================================================== 67 80 // Main loop of the compilation … … 71 84 def err = null 72 85 def log_needed = false 73 currentBuild.result = " FAILURE"86 currentBuild.result = "SUCCESS" 74 87 status_prefix = '' 75 88 76 89 try { 77 78 79 90 //Prevent the build from exceeding 30 minutes 80 91 timeout(30) { … … 99 110 } 100 111 } 101 102 currentBuild.result = "SUCCESS"103 112 } 104 113 … … 125 134 } 126 135 } 127 }128 129 def collect_git_info() {130 131 def out_dir = pwd tmp: true132 gitRefName = env.BRANCH_NAME133 dir("../${gitRefName}@script") {134 sh "git reflog > ${out_dir}/GIT_COMMIT"135 }136 git_reflog = readFile("${out_dir}/GIT_COMMIT")137 gitRefOldValue = (git_reflog =~ /moving from (.+) to (.+)/)[0][1]138 gitRefNewValue = (git_reflog =~ /moving from (.+) to (.+)/)[0][2]139 136 } 140 137
Note: See TracChangeset
for help on using the changeset viewer.