File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change 11import org.elasticsearch.gradle.OS
2+ import org.elasticsearch.gradle.info.BuildParams
23import org.gradle.initialization.BuildRequestMetaData
34
45import java.util.concurrent.TimeUnit
@@ -76,14 +77,8 @@ buildScan {
7677 value ' Git Branch' , branch
7778 tag branch
7879 }
79- if (System . getenv(' GIT_COMMIT' )) {
80- value ' Git Commit ID' , System . getenv(' GIT_COMMIT' )
81- link ' Source' , " https://github.com/elastic/elasticsearch/tree/${ System.getenv('GIT_COMMIT')} "
82- background {
83- def changes = " git diff --name-only ${ System.getenv('GIT_PREVIOUS_COMMIT')} ..${ System.getenv('GIT_COMMIT')} " . execute(). text. trim()
84- value ' Git Changes' , changes
85- }
86- }
80+ value ' Git Commit ID' , BuildParams . gitRevision
81+ link ' Source' , " https://github.com/elastic/elasticsearch/tree/${ BuildParams.gitRevision} "
8782 }
8883 } else {
8984 tag ' LOCAL'
You can’t perform that action at this time.
0 commit comments