aboutsummaryrefslogtreecommitdiffstats
path: root/set_version.sh
diff options
context:
space:
mode:
authorAlex Shatov <alexs@att.com>2017-09-15 13:52:31 -0400
committerAlex Shatov <alexs@att.com>2017-09-15 13:52:31 -0400
commitb511ff360603599c43e066722d3902a55fac3f6d (patch)
tree7caa5c8ceb51568b444f0bd4ed9158fe92e8355e /set_version.sh
parent3486bd1a77a8a3f198de171fda34c102406a26ea (diff)
4.2.0 - added the policy-update handling
* API version 4.1.0 - added /policy, /swagger-ui * new: policy update with queuing of execute-operations * more data on info - branch+commit-datetime * expecting consul ip to be in /etc/hosts * added swagger-ui and added policy to *API.yaml * common logging - more audits and metrics records - directly in promise_request Change-Id: I7d32f34100a16b5b7293ed5afe67f5c8c3098495 Issue-Id: DCAEGEN2-62 Signed-off-by: Alex Shatov <alexs@att.com>
Diffstat (limited to 'set_version.sh')
-rwxr-xr-xset_version.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/set_version.sh b/set_version.sh
index dfb7e8e..1169c15 100755
--- a/set_version.sh
+++ b/set_version.sh
@@ -1,2 +1,5 @@
#!/bin/bash
-echo "exports.version=\"$(git describe --long --always)\";" > version.js
+
+echo "exports.branch=\"$(git branch | grep \* | cut -d ' ' -f2)\";" > version.js
+echo "exports.commit=\"$(git describe --long --always)\";" >> version.js
+echo "exports.commit_datetime=\"$(git show -s --format=%ci)\";" >> version.js