Enable generation and exposure of git information 24/103324/4
authorebo <eliezio.oliveira@est.tech>
Sat, 7 Mar 2020 13:46:41 +0000 (13:46 +0000)
committerebo <eliezio.oliveira@est.tech>
Wed, 11 Mar 2020 21:14:05 +0000 (21:14 +0000)
Initially only the blueprintprocessor MS will expose these info.

Issue-ID: CCSDK-2165
Change-Id: Id0b994e62a2992942ec1def40566a03615c9df3c
Signed-off-by: ebo <eliezio.oliveira@est.tech>
ms/blueprintsprocessor/application/pom.xml
ms/blueprintsprocessor/application/src/main/resources/application.properties
ms/pom.xml

index d17425c..a6dd73b 100755 (executable)
                     <target>1.8</target>
                 </configuration>
             </plugin>
+            <plugin>
+                <groupId>pl.project13.maven</groupId>
+                <artifactId>git-commit-id-plugin</artifactId>
+            </plugin>
         </plugins>
     </build>
 
index 2a16b3e..412fa3a 100755 (executable)
@@ -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
index 9386150..7a0168f 100644 (file)
         <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>