jenkins-post-www.sh generates MANIFEST on source not destination

Bug #924776 reported by James Tunnicliffe
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linaro-license-protection
Fix Released
Undecided
James Tunnicliffe

Bug Description

http://snapshots.linaro.org/android/~linaro-android/tracking-panda/173/MANIFEST contains just one line: "lava-job-info". I think this is because every upload goes through jenkins-post-www.sh, but it is called multiple times per job. This results in MANIFEST containing the last files to be uploaded, not the full list.

Assuming this analysis is correct, changing the script to finish with this should fix it:

job_dir=$(dirname $build_path)
username=`echo "$job_dir" | cut -d_ -f1`
jobname=`echo "$job_dir" | cut -d_ -f2-`

echo -n "Moving $BASE_PATH/$build_path to $TARGET_PATH/~$username/$jobname/... " &&
(mkdir -p "$TARGET_PATH/~$username/$jobname" && \
     cp -a $BASE_PATH/"$build_path" "$TARGET_PATH/~$username/$jobname/" && \
     rm -rf $BASE_PATH/"$build_path" && \
     echo "done")

cd "$TARGET_PATH/~$username/$jobname/"
find * -xtype f > MANIFEST

Changed in linaro-license-protection:
assignee: nobody → James Tunnicliffe (dooferlad)
status: New → In Progress
Changed in linaro-license-protection:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.