diff options
author | David Rautureau <david.rautureau@sonarsource.com> | 2018-03-26 18:26:07 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2018-04-10 20:20:54 +0200 |
commit | f7e38afea9986a8663954dffcfcea74a08d608e0 (patch) | |
tree | 739f79415c45719c33d958ea674456dabca83596 | |
parent | 6f01667e7d1262cb7479b393460f66dfa4d8c46a (diff) | |
download | sonarqube-f7e38afea9986a8663954dffcfcea74a08d608e0.tar.gz sonarqube-f7e38afea9986a8663954dffcfcea74a08d608e0.zip |
Add sha1 in web.log
-rw-r--r-- | server/sonar-server/build.gradle | 10 | ||||
-rw-r--r-- | server/sonar-server/src/main/resources/build.properties | 3 |
2 files changed, 11 insertions, 2 deletions
diff --git a/server/sonar-server/build.gradle b/server/sonar-server/build.gradle index c88c09d48b3..7d56f441169 100644 --- a/server/sonar-server/build.gradle +++ b/server/sonar-server/build.gradle @@ -12,6 +12,16 @@ sourceSets { } } + +import org.apache.tools.ant.filters.ReplaceTokens +processResources { + filesMatching('build.properties') { + filter ReplaceTokens, tokens: [ + 'buildNumber': release ? 'git rev-parse HEAD'.execute().text.trim() : 'N/A' + ] + } +} + dependencies { // please keep the list grouped by configuration and ordered by name diff --git a/server/sonar-server/src/main/resources/build.properties b/server/sonar-server/src/main/resources/build.properties index 8c9958a7711..c73bb2bc3ae 100644 --- a/server/sonar-server/src/main/resources/build.properties +++ b/server/sonar-server/src/main/resources/build.properties @@ -1,2 +1 @@ -Implementation-Build=${buildNumber} -Build-Time=${timestamp}
\ No newline at end of file +Implementation-Build=@buildNumber@
\ No newline at end of file |