summaryrefslogtreecommitdiffstats
path: root/jjb/apex
diff options
context:
space:
mode:
Diffstat (limited to 'jjb/apex')
-rw-r--r--jjb/apex/apex.yml6
1 files changed, 4 insertions, 2 deletions
diff --git a/jjb/apex/apex.yml b/jjb/apex/apex.yml
index 30dfcda0c..376515b95 100644
--- a/jjb/apex/apex.yml
+++ b/jjb/apex/apex.yml
@@ -333,8 +333,10 @@
fi
# update / install the new rpm
- if rpm -q opnfv-apex; then
- sudo yum update -y $RPM_INSTALL_PATH;
+ if rpm -q opnfv-apex > /dev/null; then
+ if sudo yum update -y $RPM_INSTALL_PATH | grep "does not update installed package"; then
+ sudo yum downgrade -y $RPM_INSTALL_PATH;
+ fi
else
sudo yum install -y $RPM_INSTALL_PATH;
fi