Skip to content

Commit

Permalink
Link github file tree instead of commit
Browse files Browse the repository at this point in the history
  • Loading branch information
britter committed Oct 4, 2019
1 parent 735eede commit 5cf03bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gradle/build-scan-data.gradle
Expand Up @@ -194,7 +194,7 @@ void addGitMetadata() {
addCustomValueSearchLink 'Git commit id build scans', [(commitIdLabel): gitCommitId]
def originUrl = execAndGetStdout('git', 'config', '--get', 'remote.origin.url')
if (originUrl.contains('github.com')) { // only for GitHub
link 'Github Source', "https://github.com/britter/spring-boot-heroku-demo/commit/" + gitCommitId
link 'Github Source', "https://github.com/britter/spring-boot-heroku-demo/tree/" + gitCommitId
}
}
if (gitBranchName) {
Expand All @@ -211,7 +211,7 @@ void addGitMetadata() {
def gitCommitId = System.getenv("SOURCE_VERSION")
value commitIdLabel, gitCommitId
addCustomValueSearchLink 'Git commit id build scans', [(commitIdLabel): gitCommitId]
link 'Github Source', "https://github.com/britter/spring-boot-heroku-demo/commit/" + gitCommitId
link 'Github Source', "https://github.com/britter/spring-boot-heroku-demo/tree/" + gitCommitId
}
}
}
Expand Down

0 comments on commit 5cf03bf

Please sign in to comment.