summaryrefslogtreecommitdiffstats
path: root/jjb/apex/apex.yml
diff options
context:
space:
mode:
authorDan Radez <dradez@redhat.com>2015-11-14 12:47:59 -0500
committerDan Radez <dradez@redhat.com>2015-11-14 12:48:31 -0500
commitfe3d91d6c138ba6eedfbbab18269ad769c562206 (patch)
tree5c380a80cef9189743f10aab5a27f41befa8ba8c /jjb/apex/apex.yml
parent7b1c750b1bf38be2af727fa14528d223d29ed891 (diff)
downgrade apex package if building older than what is previously been installed
Change-Id: Ic37ae76d5a5453cac1c19fc5500d162003eddac6 Signed-off-by: Dan Radez <dradez@redhat.com>
Diffstat (limited to 'jjb/apex/apex.yml')
-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