aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleg Beltz <olegb@amdocs.com>2019-04-07 08:26:50 +0300
committerAvi Gaffa <avi.gaffa@amdocs.com>2019-04-07 12:14:01 +0000
commita8e3bf27eec7832a89522b776f08dda8dc0985d2 (patch)
treea9965228f2e2e431443ff1340dd0b02476184356
parentb087a8b55875bd0a100ba2cbfda376bab716741b (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.xml36
1 files changed, 36 insertions, 0 deletions
diff --git a/pom.xml b/pom.xml
index 60a5fb0ae1..af318f774e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -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>