aboutsummaryrefslogtreecommitdiffstats
path: root/ms
diff options
context:
space:
mode:
authorebo <eliezio.oliveira@est.tech>2020-03-07 13:46:41 +0000
committerebo <eliezio.oliveira@est.tech>2020-03-11 21:14:05 +0000
commit949fed2a716fa636aec836ec46fec2c595f68d4f (patch)
tree1727d7d603131552b6b4d9f6af1917898c0c85b7 /ms
parent91b3a6477c4d5136bea02d3c1284a51b2f2ec1b1 (diff)
Enable generation and exposure of git information
Initially only the blueprintprocessor MS will expose these info. Issue-ID: CCSDK-2165 Change-Id: Id0b994e62a2992942ec1def40566a03615c9df3c Signed-off-by: ebo <eliezio.oliveira@est.tech>
Diffstat (limited to 'ms')
-rwxr-xr-xms/blueprintsprocessor/application/pom.xml4
-rwxr-xr-xms/blueprintsprocessor/application/src/main/resources/application.properties1
-rw-r--r--ms/pom.xml19
3 files changed, 24 insertions, 0 deletions
diff --git a/ms/blueprintsprocessor/application/pom.xml b/ms/blueprintsprocessor/application/pom.xml
index d17425c40..a6dd73ba6 100755
--- a/ms/blueprintsprocessor/application/pom.xml
+++ b/ms/blueprintsprocessor/application/pom.xml
@@ -312,6 +312,10 @@
<target>1.8</target>
</configuration>
</plugin>
+ <plugin>
+ <groupId>pl.project13.maven</groupId>
+ <artifactId>git-commit-id-plugin</artifactId>
+ </plugin>
</plugins>
</build>
diff --git a/ms/blueprintsprocessor/application/src/main/resources/application.properties b/ms/blueprintsprocessor/application/src/main/resources/application.properties
index 2a16b3ef9..412fa3a33 100755
--- a/ms/blueprintsprocessor/application/src/main/resources/application.properties
+++ b/ms/blueprintsprocessor/application/src/main/resources/application.properties
@@ -135,3 +135,4 @@ cdslistener.healthcheck.mapping-service-name-with-service-link=[SDC Listener ser
#Actuator properties
management.endpoints.web.exposure.include=*
management.endpoint.health.show-details=always
+management.info.git.mode=full
diff --git a/ms/pom.xml b/ms/pom.xml
index 9386150bf..7a0168f5b 100644
--- a/ms/pom.xml
+++ b/ms/pom.xml
@@ -38,4 +38,23 @@
<module>command-executor</module>
<module>sdclistener</module>
</modules>
+
+ <build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>pl.project13.maven</groupId>
+ <artifactId>git-commit-id-plugin</artifactId>
+ <version>4.0.0</version>
+ <configuration>
+ <includeOnlyProperties>
+ <includeOnlyProperty>^git.build.(time|version)$</includeOnlyProperty>
+ <includeOnlyProperty>^git.commit.id.(abbrev|full)$</includeOnlyProperty>
+ </includeOnlyProperties>
+ <commitIdGenerationMode>full</commitIdGenerationMode>
+ </configuration>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
</project>