Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Commit b59ad01

Browse files
committed
publish-project.sh: try to exclude build/ correctly
It appears with new tar on Ubuntu 17.04, build/ does not get included with old way. Signed-off-by: Olev Kartau <olev.kartau@intel.com>
1 parent 9155b3a commit b59ad01

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docker/publish-project.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,10 @@ rsync -lv latest ${_RSYNC_DEST_BASE}/../
146146

147147
# create clean tarball of source, leaving out .git* and parts created by build and test stages
148148
cd $WORKSPACE
149-
_tar_file=`mktemp --suffix=.tar.gz`
150-
tar czf ${_tar_file} . \
151-
--transform "s,^\.,${JOB_NAME}-${CI_BUILD_ID},S" \
152-
--exclude 'bitbake*.log*' --exclude 'build' --exclude 'build.pre' \
153-
--exclude 'buildhistory*' --exclude 'refkit_ci*' \
154-
--exclude '.git*' --exclude '*.testinfo.csv'
149+
_tar_file=`mktemp --tmpdir=$WORKSPACE --suffix=.tar.gz`
150+
tar --transform "s,^\.,${JOB_NAME}-${CI_BUILD_ID},S" \
151+
--exclude=bitbake*.log* --exclude=build* \
152+
--exclude=buildhistory* --exclude=refkit_ci* \
153+
--exclude=.git* --exclude=*.testinfo.csv \
154+
-czf ${_tar_file} .
155155
rsync -av --remove-source-files --chmod=F644 ${_tar_file} ${_RSYNC_DEST_BASE}/${JOB_NAME}-${CI_BUILD_ID}.tar.gz

0 commit comments

Comments
 (0)