Skip to content

Commit

Permalink
Merge pull request #2696 from StackStorm/package/sha_stuff
Browse files Browse the repository at this point in the history
Getting the gitSHA, version and circle_build_url to the deb and rpm packages
  • Loading branch information
humblearner committed May 24, 2016
2 parents b2fb296 + 3966c7f commit 4bac378
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions scripts/populate-package-meta.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/sh

pushd $GITDIR/scripts

config=../package.meta

if [ -e "$config" ]; then
rm $config
fi
touch $config
cat <<package_meta >$config
[server]
version = $(python -c 'execfile("../st2common/st2common/__init__.py"); print __version__')
git_sha = $(git rev-parse --short HEAD)
circle_build_url = $(echo $ST2_CIRCLE_URL)
package_meta

echo Contents of package.meta for reference:
cat ../package.meta
popd

0 comments on commit 4bac378

Please sign in to comment.