build: include commit sha in build artifacts (#4505)

Fixes #4502
This commit is contained in:
Paul Gschwendtner
2017-05-12 23:29:09 +02:00
committed by Kara
parent aaa09b5b82
commit 3953d6eb37
@@ -37,6 +37,9 @@ cp -r $buildDir/* $repoDir
# Create the build commit and push the changes to the repository.
cd $repoDir
# Update the package.json version to include the current commit SHA.
sed -i "s/$buildVersion/$buildVersion-$commitSha/g" package.json
# Prepare Git for pushing the artifacts to the repository.
git config user.name "$commitAuthorName"
git config user.email "$commitAuthorEmail"