summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorrb7147 <rb7147@att.com>2017-11-03 11:42:33 -0400
committerrb7147 <rb7147@att.com>2017-11-03 11:42:44 -0400
commit92c23c76ed0f8bd39a63fefd0cc3e4942ce5f96d (patch)
treefd5fd073b0546024334018bd6936df03084e7678 /packages
parent5801aee845d379f7e21a3af446df05a7239d8f8c (diff)
Added build.info to Policy Engine packages
Issue-ID: POLICY-406 Change-Id: I9420668e4380aa00c0ef5c7fe63796215c52634a Signed-off-by: rb7147 <rb7147@att.com>
Diffstat (limited to 'packages')
-rwxr-xr-xpackages/base/pom.xml23
1 files changed, 23 insertions, 0 deletions
diff --git a/packages/base/pom.xml b/packages/base/pom.xml
index 7da4f7cdc..622f9b90e 100755
--- a/packages/base/pom.xml
+++ b/packages/base/pom.xml
@@ -200,6 +200,29 @@
</os>
</activation>
<build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <version>1.5.0</version>
+ <executions>
+ <execution>
+ <id>create-version-file</id>
+ <goals>
+ <goal>exec</goal>
+ </goals>
+ <phase>prepare-package</phase>
+ <configuration>
+ <executable>/bin/bash</executable>
+ <arguments>
+ <argument>-c</argument>
+ <argument>mkdir -p target ; echo -e 'version="${project.version}"\ndescription="Open ONAP Policy Engine"\nbuildTag="'"${BUILD_TAG}"'"\ncommit="'"${GIT_COMMIT}"'"\ntimestamp="${maven.build.timestamp}"' >target/build.info</argument>
+ </arguments>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
</build>
</profile>
</profiles>