Fix path issue with archive log message 13/54013/3
authorThanh Ha <thanh.ha@linuxfoundation.org>
Wed, 29 Mar 2017 20:00:55 +0000 (16:00 -0400)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Wed, 29 Mar 2017 20:01:56 +0000 (16:01 -0400)
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>
jjb/include-raw-deploy-archives.sh

index 78594e1591fed3f09d1e4107243e2cdd60a68e34..fd25bc2d30391f56f332f8edf48f4c0b75eebb10 100644 (file)
@@ -77,7 +77,7 @@ if [ ! -z "$ARCHIVE_ARTIFACTS" ]; then
     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"