summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorSzilard Cserey <szilard.cserey@ericsson.com>2015-09-18 16:37:28 +0200
committerSzilard Cserey <szilard.cserey@ericsson.com>2015-09-18 16:37:28 +0200
commitf875d7938f019110a53c1726789d3996b3c1ba05 (patch)
tree2d524b283ab56d6fbc5bc9930fc5c70c40895786 /utils
parent18055b46af3362065540fd7db283622a974a82a2 (diff)
New job for Fuel Plugin Build
Update of Fuel Deploy job - for fetching the newly build Fuel Plugin Change-Id: I983f4244739370510012ddf6445667f53def3734 Signed-off-by: Szilard Cserey <szilard.cserey@ericsson.com>
Diffstat (limited to 'utils')
-rwxr-xr-xutils/lab-reconfiguration/create_venv.sh10
-rw-r--r--utils/lab-reconfiguration/requirements.pip1
2 files changed, 11 insertions, 0 deletions
diff --git a/utils/lab-reconfiguration/create_venv.sh b/utils/lab-reconfiguration/create_venv.sh
index 4e45f8462..e94b22b1b 100755
--- a/utils/lab-reconfiguration/create_venv.sh
+++ b/utils/lab-reconfiguration/create_venv.sh
@@ -30,6 +30,16 @@ if [[ ! $(rpm -qa | grep python-2.7) ]]; then
sudo yum install -y python-2.7*
fi
+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
+fi
+
+if [[ ! $(gem list | grep fpm) ]]; then
+ echo "fpm gem not found, but required for Fuel Plugin build ... attempting to install"
+ sudo gem install fpm
+fi
+
if [ ! -f "$BASEDIR/venv/updated" -o $BASEDIR/requirements.pip -nt $BASEDIR/venv/updated ]; then
source $BASEDIR/venv/bin/activate
pip install -r $BASEDIR/requirements.pip
diff --git a/utils/lab-reconfiguration/requirements.pip b/utils/lab-reconfiguration/requirements.pip
index 8cd1db0ba..dd3207b0e 100644
--- a/utils/lab-reconfiguration/requirements.pip
+++ b/utils/lab-reconfiguration/requirements.pip
@@ -1,2 +1,3 @@
UcsSdk==0.8.2.2
PyYAML
+fuel-plugin-builder \ No newline at end of file