~kubuntu-dev/+junk/orchrestration

« back to all changes in this revision

Viewing changes to imager/imager

  • Committer: Rohan Garg
  • Date: 2014-07-24 14:49:09 UTC
  • Revision ID: rohangarg@kubuntu.org-20140724144909-f2ycnf323fjfqbt7
basename is awesome

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
    END_MESSAGE="ISO build failed :: see $NEON5_WEBLOG"
34
34
fi
35
35
 
36
 
REMOTE_ISO=`ssh kubuntu@qa.kubuntu.co.uk ls /home/kubuntu/iso/kubuntu*.iso`
37
 
sha256sum_remote=`ssh kubuntu@qa.kubuntu.co.uk sha256sum $REMOTE_ISO | awk '{print $1}'`
 
36
ISO_NAME=`basename $iso`
 
37
sha256sum_remote=`ssh kubuntu@qa.kubuntu.co.uk sha256sum ~/iso/$ISO_NAME | awk '{print $1}'`
38
38
sha256sum_local=`sha256sum $iso | awk '{print $1}'`
39
39
 
40
40
if [ "$sha256sum_local" != "$sha256sum_remote" ]; then
43
43
else
44
44
    # Always explicitly fail here, otherwise things can go terribly wrong!
45
45
    scp /home/kubuntu/imager/depot-symlink kubuntu@qa.kubuntu.co.uk:~/iso/ || { bot-notice "[imager] scp depo-symlink failed"; exit 1; }
46
 
    ssh kubuntu@qa.kubuntu.co.uk /home/kubuntu/iso/depot-symlink $REMOTE_ISO || { bot-notice "[imager] calling depo-symlink failed"; exit 1; }
 
46
    ssh kubuntu@qa.kubuntu.co.uk /home/kubuntu/iso/depot-symlink $ISO_NAME || { bot-notice "[imager] calling depo-symlink failed"; exit 1; }
47
47
fi
48
48
 
49
49