Since we pop the workspace in this instance we are not in the right
directory to be writing to the archives log file so we have to give the
full path.
Change-Id: Ie998a7f28d6720be237d7a0784a7a449e124395f
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
shopt -s globstar # Enable globstar to copy archives
for f in $ARCHIVE_ARTIFACTS; do
[[ -e $f ]] || continue # handle the case of no files to archive
- echo "Archiving $f" >> "$ARCHIVES_DIR/_archives.log"
+ echo "Archiving $f" >> "$WORKSPACE/.archives/$ARCHIVES_DIR/_archives.log"
dir=$(dirname "$f")
mkdir -p "$WORKSPACE/archives/$dir"
mv "$f" "$WORKSPACE/archives/$f"