Fix artifacts-api dependencies and PATH 31/11931/1
authorTrevor Bramwell <tbramwell@linuxfoundation.org>
Tue, 5 Apr 2016 22:03:14 +0000 (15:03 -0700)
committerTrevor Bramwell <tbramwell@linuxfoundation.org>
Tue, 5 Apr 2016 22:40:45 +0000 (15:40 -0700)
 - 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>
jjb/releng-macros.yaml

index 1c9c321..8c1539c 100644 (file)
             #!/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