Changeset 3a9aceb
- Timestamp:
- Aug 17, 2018, 2:27:57 PM (6 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, no_list, persistent-indexer, pthread-emulation, qualifiedEnum
- Children:
- 0fd5003
- Parents:
- d2c58be
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Jenkinsfile
rd2c58be r3a9aceb 116 116 public final Boolean Silent 117 117 public final Boolean IsSandbox 118 public final String Branch119 public final String Commit120 public final String PrevCommit121 public final String RepoUrl122 118 public final String DescLong 123 119 public final String DescShort 124 120 125 BuildSettings(java.util.Collections$UnmodifiableMap param , java.util.TreeMap scmVars) {121 BuildSettings(java.util.Collections$UnmodifiableMap param) { 126 122 switch( param.Compiler ) { 127 123 case 'gcc-6': … … 157 153 this.Publish = param.Publish 158 154 this.Silent = param.Silent 159 this.IsSandbox = scmVars.GIT_BRANCH == "jenkins-sandbox" 160 this.Branch = scmVars.GIT_BRANCH 161 this.Commit = scmVars.GIT_COMMIT 162 this.PrevCommit = scmVars.GIT_PREVIOUS_COMMIT 163 this.RepoUrl = scmVars.GIT_URL 155 this.IsSandbox = env.BRANCH_NAME == "jenkins-sandbox" 164 156 165 157 def full = param.RunAllTests ? " (Full)" : "" … … 223 215 ]]) 224 216 225 // Collect git information 226 final scmVars = checkout scm 227 228 echo env.CHANGE_ID 229 echo env.CHANGE_URL 230 echo env.CHANGE_TITLE 231 echo env.CHANGE_AUTHOR 232 echo env.CHANGE_AUTHOR_DISPLAY_NAME 233 echo env.CHANGE_AUTHOR_EMAIL 234 echo env.CHANGE_TARGET 235 236 final settings = new BuildSettings(params, scmVars) 217 final settings = new BuildSettings(params) 237 218 238 219 currentBuild.description = settings.DescShort … … 387 368 return update 388 369 389 def output=readFile('result').trim()390 echo "output=$output";370 def output=readFile('result').trim() 371 echo "output=$output"; 391 372 } 392 373 … … 402 383 403 384 try { 404 gitUpdate = gitBranchUpdate(Settings.PrevCommit, Settings.Commit) 405 406 sh "git rev-list --format=short ${Settings.PrevCommit}...${Settings.Commit} > GIT_LOG" 385 final scmVars = checkout(scm) 386 387 gitUpdate = gitBranchUpdate(scmVars.GIT_PREVIOUS_COMMIT, scmVars.GIT_COMMIT) 388 389 sh "git rev-list --format=short ${scmVars.GIT_PREVIOUS_COMMIT}...${scmVars.GIT_COMMIT} > GIT_LOG" 407 390 gitLog = readFile('GIT_LOG') 408 391 409 sh "git diff --stat ${ Settings.Commit} ${Settings.PrevCommit} > GIT_DIFF"392 sh "git diff --stat ${scmVars.GIT_COMMIT} ${scmVars.GIT_PREVIOUS_COMMIT} > GIT_DIFF" 410 393 gitDiff = readFile('GIT_DIFF') 411 394 }
Note: See TracChangeset
for help on using the changeset viewer.