Skip to content

Commit f5b935c

Browse files
dwightguthehildenb
authored andcommitted
Jenkinsfile: generate source tarball (#416)
* Jenkinsfile: generate source tarball * Jenkinsfile: fix typo
1 parent 7539ffb commit f5b935c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Jenkinsfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,11 +214,21 @@ pipeline {
214214
steps {
215215
unstash 'bionic'
216216
unstash 'arch'
217+
dir("kevm-${env.RELEASE_ID}") {
218+
checkout scm
219+
sh '''
220+
find . -name .git | xargs rm -r
221+
rm -r deps/k tests/ethereum-tests deps/metropolis
222+
cd ..
223+
tar czvf kevm-${RELEASE_ID}.tar.gz kevm-${RELEASE_ID}
224+
'''
225+
}
217226
sh '''
218227
git_commit=$(cd kevm-$RELEASE_ID && git rev-parse --short HEAD)
219228
hub release create \
220229
--attach "kevm_${RELEASE_ID}_amd64.deb#Ubuntu Bionic (18.04) Package" \
221230
--attach "kevm-${RELEASE_ID}/package/kevm-git-${RELEASE_ID}-1-x86_64.pkg.tar.xz#Arch Package" \
231+
--attach "kevm-${RELEASE_ID}.tar.gz#Source tar.gz" \
222232
--message "$(echo -e "KEVM Release $RELEASE_ID - $git_commit\n\n" ; cat kevm-${RELEASE_ID}/INSTALL.md ;)" \
223233
--commitish $(git rev-parse HEAD) "v$RELEASE_ID-$git_commit"
224234
'''

0 commit comments

Comments
 (0)