summaryrefslogtreecommitdiffstats
path: root/jjb/apex
diff options
context:
space:
mode:
authorTim Rozet <trozet@redhat.com>2016-01-06 17:55:04 -0500
committerTim Rozet <trozet@redhat.com>2016-01-06 17:55:04 -0500
commite65c585aec4c31834872bdb5450241cbac92f142 (patch)
tree4d86904d38119e656c5a99413aec5ce08b155b13 /jjb/apex
parenta075cccd604aeb3d90cdcbbab2d34dca7129d99e (diff)
Fixes apex baremetal deploy case where desired RPM is already installed
Change-Id: I025a3ad5ab1c3a4eed1306cb58071d7d75a7d9ad Signed-off-by: Tim Rozet <trozet@redhat.com>
Diffstat (limited to 'jjb/apex')
-rw-r--r--jjb/apex/apex.yml4
1 files changed, 3 insertions, 1 deletions
diff --git a/jjb/apex/apex.yml b/jjb/apex/apex.yml
index b41cedb9d..ec88031b1 100644
--- a/jjb/apex/apex.yml
+++ b/jjb/apex/apex.yml
@@ -478,7 +478,9 @@
# update / install the new rpm
if rpm -q opnfv-apex > /dev/null; then
- if sudo yum update -y $RPM_INSTALL_PATH | grep "does not update installed package"; then
+ if [ $(basename $OPNFV_RPM_URL) == $(rpm -q opnfv-apex).rpm ]; then
+ echo "RPM is already installed"
+ elif sudo yum update -y $RPM_INSTALL_PATH | grep "does not update installed package"; then
sudo yum downgrade -y $RPM_INSTALL_PATH;
fi
else