- Include '/usr/local/bin' in PATH so gsutil can be used
- Ensure the virtualenv uses python2.7 so SSL warnings go away
- Remove 'easy_install' call as pip is already available in the
virtualenv
Change-Id: I2b6f6a8bc284c580cc71ec0f02ebd88baf2de462
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
#!/bin/bash
set -o errexit
set -o pipefail
+ export PATH=$PATH:/usr/local/bin/
- echo "Generating Artifacts API ..."
- virtualenv $WORKSPACE/releng_artifacts
+ virtualenv -p python2.7 $WORKSPACE/releng_artifacts
source $WORKSPACE/releng_artifacts/bin/activate
# install python packages
- easy_install -U setuptools
pip install google-api-python-client
# generate and upload index file
+ echo "Generating Artifacts API ..."
python $WORKSPACE/utils/opnfv-artifacts.py > index.json
gsutil cp index.json gs://artifacts.opnfv.org/index.json