Created
July 11, 2016 21:08
-
-
Save signed8bit/1ba14703ab49060161c200eed8c84897 to your computer and use it in GitHub Desktop.
DEVNET-1027 python-release-job-script Script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
virtualenv .publish_venv --system-site-packages | |
source .publish_venv/bin/activate | |
cd ${WORKSPACE}/${GERRIT_PROJECT} | |
pip install devpi-client | |
pip install -r requirements-dev.txt | |
devpi use http://cicd-sandbox.local:3141 | |
devpi login devnet --password=${DEVPI_PASSWORD} | |
devpi use -l | |
if [ "${GERRIT_EVENT_TYPE}" == "change-merged" ]; then | |
# Make sure we are not on the patchset refspec | |
git checkout ${GERRIT_BRANCH} | |
devpi use devnet/release | |
devpi upload | |
else | |
devpi use devnet/development | |
devpi upload --no-vcs | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment