utils/publish_package_our_pypi.sh
author Simon Fraser <sfraser@mozilla.com>
Wed, 04 Oct 2017 13:40:25 +0100
changeset 621 e231c5240a61
parent 428 28ab30f6b31d
permissions -rwxr-xr-x
Had to replace all the expired file URLs in a nightly release blob, so this script does that
#!/bin/bash -e

filename_fullpath="${1}"
filename_basename="$(basename "${filename_fullpath}")"
scp "${filename_fullpath}" "$(whoami)@relengwebadm.private.scl3.mozilla.com:"
ssh "$(whoami)@relengwebadm.private.scl3.mozilla.com" "
    sudo mv -vi '${filename_basename}' /mnt/netapp/relengweb/pypi/pub/;
    sudo chmod 644 '/mnt/netapp/relengweb/pypi/pub/${filename_basename}';
"
final_url="http://pypi.pub.build.mozilla.org/pub/${filename_basename}"
echo
echo "Testing ${final_url} ..."
curl -I "${final_url}" 2>&1