We should be pulling in everything in the PATCHES directory (especially
taglist.log) and it does not hurt to also pull in the diff files as a
backup for the bundle files.
Also fixes issue where the tarball contains the path w/jenkins-host/...
we just need it to include a patches directory.
Change-Id: I6d59eaced8ee34dce04fdf74d244196d227ef4cb
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
integration-test: beryllium
project: 'releng/autorelease'
- archive-artifacts: '**/*.prop **/*.log **/patches/*.bundle **/patches/*.patch all-bundles.tar.gz'
+ archive-artifacts: >
+ **/*.prop
+ **/*.log
+ **/patches/*.bundle
+ **/patches/*.patch
+ patches.tar.gz
###
# TODO: Remove this job once guava21 testing is complete
source "$LFTOOLS_DIR/bin/activate"
# Directory to put git format-patches
-PATCH_DIR="$(pwd)/patches"
+PATCH_DIR="$WORKSPACE/patches"
echo "$RELEASE_TAG"
lftools version release "$RELEASE_TAG"
popd
done
-tar cvzf all-bundles.tar.gz "$(find "$PATCH_DIR" -type f -print0 \
- | xargs -0r file \
- | egrep -e ':.*Git bundle.*' \
- | cut -d: -f1)"
+tar cvzf patches.tar.gz -C "$WORKSPACE" patches
rm "$PATCH_DIR"/*.bundle