Skip to content

Commit 1c267c6

Browse files
committed
Include react SDK SHA in filename
1 parent 2a7b24e commit 1c267c6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎jenkins.sh‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ npm install
66
(cd node_modules/matrix-react-sdk && npm run build) # npm doesn't do this when dependencies point at github.com >:(
77
npm run build # Dumps artificats to /vector
88
rm vector-*.tar.gz || true # rm previous artifacts without failing if it doesn't exist
9-
tar -zcvhf vector-$GIT_COMMIT.tar.gz vector #g[z]ip, [c]reate archive, [v]erbose, [f]ilename, [h]ard-dereference (do not archive symlinks)
9+
REACT_SHA=$(cd node_modules/matrix-react-sdk && git rev-parse --short=12 HEAD) # use the ACTUAL SHA rather than assume develop
10+
tar -zcvhf vector-$GIT_COMMIT-react-$REACT_SHA.tar.gz vector #g[z]ip, [c]reate archive, [v]erbose, [f]ilename, [h]ard-dereference (do not archive symlinks)

0 commit comments

Comments
 (0)