Merge "test: fix output redirection if when CI_DEBUG"
authorjose.lausuch <jose.lausuch@ericsson.com>
Thu, 14 Jan 2016 20:24:05 +0000 (20:24 +0000)
committerGerrit Code Review <gerrit@172.30.200.206>
Thu, 14 Jan 2016 20:24:05 +0000 (20:24 +0000)
jjb/apex/apex.yml

index aad8e6e..e6d196a 100644 (file)
                 - "apex-verify.*"
                 - "apex-deploy.*"
                 - "apex-build.*"
-                - "apex-daily.*"
+
 
     builders:
         - 'apex-deploy-baremetal'
         - trigger-builds:
           - project: 'apex-build-{stream}'
             git-revision: true
+            current-parameters: true
             block: true
         - trigger-builds:
           - project: 'apex-deploy-baremetal-{stream}'
             if echo $GERRIT_BRANCH | grep "brahmaputra" 1> /dev/null; then
               export OPNFV_ARTIFACT_VERSION="bramaputra.1.rc0"
             else
-              if [ "$ARTIFACT_VERSION" == "dev" ]; then
+              if echo $BUILD_TAG | grep "apex-verify" 1> /dev/null; then
                 export OPNFV_ARTIFACT_VERSION=dev${BUILD_NUMBER}
               elif [ "$ARTIFACT_VERSION" == "daily" ]; then
                 export OPNFV_ARTIFACT_VERSION=$(date -u +"%Y-%m-%d")
 
             # 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