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 "--------------------------------------------------------"