Install fuel-plugin-builder pip for fuel-odl-plugin build 77/1777/3
authorFatih Degirmenci <fatih.degirmenci@ericsson.com>
Fri, 18 Sep 2015 23:43:22 +0000 (01:43 +0200)
committerFatih Degirmenci <fatih.degirmenci@ericsson.com>
Mon, 21 Sep 2015 08:33:40 +0000 (08:33 +0000)
This change also includes these
- Remove unnecessary dependency from lab-reconfig venv
- Rename fuel-opendaylight-plugin-build builder to fuel-odl-plugin-build

Change-Id: I04e3966c7826b1517878d2f311dfc4d7d9bc8fa6
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
jjb/genesis/genesis-fuel.yml
utils/lab-reconfiguration/requirements.pip

index fb25b07..fb365f5 100644 (file)
 
     builders:
         - 'fuel-download-artifact'
-        - 'fuel-opendaylight-plugin-build'
+        - 'fuel-odl-plugin-build'
         - 'fuel-deploy'
 
     publishers:
             echo "Done!"
 
 - builder:
-    name: 'fuel-opendaylight-plugin-build'
+    name: 'fuel-odl-plugin-build'
     builders:
         - shell: |
             #!/bin/bash
             set -o nounset
             set -o pipefail
 
+            # install dependencies if they are not available already
             if [[ ! $(rpm -qa | grep rubygems) ]]; then
                 echo "Rubygems not found, but required for Fuel Plugin build ... attempting to install"
                 sudo yum install -y rubygems ruby-devel
                 sudo gem install fpm
             fi
 
+            if [[ ! $(pip list | grep fuel-plugin-builder) ]]; then
+                echo "fuel-plugin-builder not found, but required for Fuel Plugin build ... attempting to install"
+                sudo pip install fuel-plugin-builder
+            fi
+
             # log info to console
             echo "Starting the build of Fuel Opendaylight Plugin. This could take some time..."
             echo "--------------------------------------------------------"
index dd3207b..8cd1db0 100644 (file)
@@ -1,3 +1,2 @@
 UcsSdk==0.8.2.2
 PyYAML
-fuel-plugin-builder
\ No newline at end of file