diff options
author | Toine Siebelink <toine.siebelink@est.tech> | 2024-10-29 18:01:09 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2024-10-29 18:01:09 +0000 |
commit | 0e39cb260532a11bb8fea755ed775f0623fb8101 (patch) | |
tree | 07d61ce3f54f4bc71699174c47ca75ce6e10faa0 /cps-application/pom.xml | |
parent | f120f1bc23569319adaaad9b8e73cf35a16759c4 (diff) | |
parent | ff99139d82e9911e485f228bcd93e0d9b4d6a74b (diff) |
Merge "Add metadata related to builds and commits"
Diffstat (limited to 'cps-application/pom.xml')
-rw-r--r-- | cps-application/pom.xml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/cps-application/pom.xml b/cps-application/pom.xml index c37447306c..08c718167e 100644 --- a/cps-application/pom.xml +++ b/cps-application/pom.xml @@ -172,6 +172,30 @@ </execution> </executions> </plugin> + <plugin> + <groupId>io.github.git-commit-id</groupId> + <artifactId>git-commit-id-maven-plugin</artifactId> + <executions> + <execution> + <id>get-git-info</id> + <goals> + <goal>revision</goal> + </goals> + <phase>package</phase> + </execution> + </executions> + <configuration> + <dateFormat>yyyy-MM-dd'T'HH:mm:ss.sss'Z'</dateFormat> + <includeOnlyProperties> + <includeOnlyProperty>^git.build.(time|version)$</includeOnlyProperty> + <includeOnlyProperty>^git.commit.(id.full|message.short|user.name|user.email)$</includeOnlyProperty> + <includeOnlyProperty>^git.branch</includeOnlyProperty> + </includeOnlyProperties> + <generateGitPropertiesFile>true</generateGitPropertiesFile> + <generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename> + <commitIdGenerationMode>full</commitIdGenerationMode> + </configuration> + </plugin> </plugins> </build> <profiles> |