diff options
author | 2016-01-06 16:51:25 -0500 | |
---|---|---|
committer | 2016-01-06 16:51:25 -0500 | |
commit | 47ce22ce48ba9c607c0c780497a7e08c6d2f0640 (patch) | |
tree | 1725d8a5a05c49d4fed5eb625da1fb6ac14fc94b /jjb/apex/apex.yml | |
parent | b82a99d50e023b5982a815d669b4d31926bb52dc (diff) |
Fixes RPM install for baremetal
Currently the deploy builders assume that the RPM is already on the
machine under build_output directory. This is true if the job was build
or verify job. But just with deploy, it is missing. This patch allows
yum install from artifacts page directly.
Change-Id: I243a747c818a5b6dcf911fa99ee063766417cfcb
Signed-off-by: Tim Rozet <trozet@redhat.com>
Diffstat (limited to 'jjb/apex/apex.yml')
-rw-r--r-- | jjb/apex/apex.yml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/jjb/apex/apex.yml b/jjb/apex/apex.yml index 97a70138c..c2f45448a 100644 --- a/jjb/apex/apex.yml +++ b/jjb/apex/apex.yml @@ -478,8 +478,10 @@ if sudo yum update -y $RPM_INSTALL_PATH | grep "does not update installed package"; then sudo yum downgrade -y $RPM_INSTALL_PATH; fi - else + elif [ -e "$RPM_INSTALL_PATH" ]; then sudo yum install -y $RPM_INSTALL_PATH; + else + sudo yum install -y http://${OPNFV_RPM_URL} fi # cleanup environment before we start |