summaryrefslogtreecommitdiffstats
path: root/jjb/apex
diff options
context:
space:
mode:
authorTim Rozet <trozet@redhat.com>2015-11-16 17:43:34 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2015-11-16 17:43:34 +0000
commitaad4a7e729bbece5db69e47ab102be17955f0305 (patch)
tree53557d70e64859f20fa45044bc75b08874957366 /jjb/apex
parent994bf8e96d092662e2d3e7840c16e93da0eeac4d (diff)
parentfe3d91d6c138ba6eedfbbab18269ad769c562206 (diff)
Merge "downgrade apex package if building older than what is previously been installed"
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