diff options
author | Oleg Beltz <olegb@amdocs.com> | 2019-04-07 08:26:50 +0300 |
---|---|---|
committer | Avi Gaffa <avi.gaffa@amdocs.com> | 2019-04-07 12:14:01 +0000 |
commit | a8e3bf27eec7832a89522b776f08dda8dc0985d2 (patch) | |
tree | a9965228f2e2e431443ff1340dd0b02476184356 | |
parent | b087a8b55875bd0a100ba2cbfda376bab716741b (diff) |
Add build commit information to artifacts
Change-Id: I38c230b8ebf3996300e4a5548ea807a020c3293b
Issue-ID: SDC-2222
Signed-off-by: Oleg Beltz <olegb@amdocs.com>
-rw-r--r-- | pom.xml | 36 |
1 files changed, 36 insertions, 0 deletions
@@ -321,6 +321,11 @@ Modifications copyright (c) 2018 Nokia <artifactId>yaml-json-validator-maven-plugin</artifactId> <version>1.0.1</version> </plugin> + <plugin> + <groupId>pl.project13.maven</groupId> + <artifactId>git-commit-id-plugin</artifactId> + <version>2.2.6</version> + </plugin> </plugins> </pluginManagement> @@ -426,6 +431,37 @@ Modifications copyright (c) 2018 Nokia <printSummary>false</printSummary> </configuration> </plugin> + <plugin> + <groupId>pl.project13.maven</groupId> + <artifactId>git-commit-id-plugin</artifactId> + <executions> + <execution> + <goals> + <goal>revision</goal> + </goals> + </execution> + </executions> + <configuration> + <generateGitPropertiesFile>true</generateGitPropertiesFile> + <generateGitPropertiesFilename>${project.build.outputDirectory}/META-INF/git.properties</generateGitPropertiesFilename> + <failOnNoGitDirectory>true</failOnNoGitDirectory> + <verbose>false</verbose> + <includeOnlyProperties> + <includeOnlyProperty>git.build.version</includeOnlyProperty> + <includeOnlyProperty>git.build.time</includeOnlyProperty> + <includeOnlyProperty>git.commit.id</includeOnlyProperty> + <includeOnlyProperty>git.commit.time</includeOnlyProperty> + <includeOnlyProperty>git.commit.user.name</includeOnlyProperty> + <includeOnlyProperty>git.commit.user.email</includeOnlyProperty> + <includeOnlyProperty>git.commit.message.short</includeOnlyProperty> + <includeOnlyProperty>git.commit.message.full</includeOnlyProperty> + </includeOnlyProperties> + <gitDescribe> + <skip>true</skip> + </gitDescribe> + <useNativeGit>false</useNativeGit> + </configuration> + </plugin> </plugins> </build> |