Merge lp:~pfalcon/linaro-license-protection/reshuffle-error-report into lp:~linaro-automation/linaro-license-protection/trunk

Proposed by Paul Sokolovsky
Status: Merged
Approved by: James Tunnicliffe
Approved revision: 34
Merged at revision: 34
Proposed branch: lp:~pfalcon/linaro-license-protection/reshuffle-error-report
Merge into: lp:~linaro-automation/linaro-license-protection/trunk
Diff against target: 27 lines (+10/-7)
1 file modified
scripts/jenkins-post-www.sh (+10/-7)
To merge this branch: bzr merge lp:~pfalcon/linaro-license-protection/reshuffle-error-report
Reviewer Review Type Date Requested Status
Данило Шеган (community) Approve
James Tunnicliffe (community) Approve
Review via email: mp+88398@code.launchpad.net

Description of the change

Capture script state we have on the mombin.

To post a comment you must log in.
Revision history for this message
James Tunnicliffe (dooferlad) wrote :

Looks good.

review: Approve
Revision history for this message
Данило Шеган (danilo) wrote :

Looks good.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'scripts/jenkins-post-www.sh'
2--- scripts/jenkins-post-www.sh 2012-01-11 18:08:53 +0000
3+++ scripts/jenkins-post-www.sh 2012-01-12 15:39:23 +0000
4@@ -16,13 +16,16 @@
5 exit 1
6 fi
7
8-if [ -d $BASE_PATH/$build_path ]; then
9- job_dir=$(dirname $build_path)
10- username=`echo "$job_dir" | cut -d_ -f1`
11- jobname=`echo "$job_dir" | cut -d_ -f2-`
12- echo -n "Moving $BASE_PATH/$build_path to $TARGET_PATH/~$username/$jobname/... " &&
13- (mkdir -p "$TARGET_PATH/~$username/$jobname" && \
14+if [ ! -d $BASE_PATH/$build_path ]; then
15+ echo "ERROR: Expected directory $BASE_PATH/$build_path does not exist"
16+ exit 1
17+fi
18+
19+job_dir=$(dirname $build_path)
20+username=`echo "$job_dir" | cut -d_ -f1`
21+jobname=`echo "$job_dir" | cut -d_ -f2-`
22+echo -n "Moving $BASE_PATH/$build_path to $TARGET_PATH/~$username/$jobname/... " &&
23+(mkdir -p "$TARGET_PATH/~$username/$jobname" && \
24 cp -a $BASE_PATH/"$build_path" "$TARGET_PATH/~$username/$jobname/" && \
25 rm -rf $BASE_PATH/"$build_path" && \
26 echo "done")
27-fi

Subscribers

People subscribed via source and target branches