utils/publish_package_our_pypi.sh
author Aki Sasaki <asasaki@mozilla.com>
Tue, 21 Mar 2017 11:19:28 -0700
changeset 609 a589ceb5fb44
parent 428 28ab30f6b31d
permissions -rwxr-xr-x
script to launch firefox in a separate profile for bouncer
#!/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