aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorliyuenan <liyuenan@huawei.com>2017-02-07 09:30:16 +0800
committerliyuenan <liyuenan@huawei.com>2017-02-07 09:36:49 +0800
commitebd628aab893bc4d0709961ae46cf404c802ed0f (patch)
tree93616a4712b51c98353c616d523f0c11d7611e0c
parent3f7f5f2ad5e05a70c7deee2d9a192984835c2bfe (diff)
Edit deploy_ci.sh for CI jobsstable/colorado
JIRA: - For daily build or verify build, adjust OS_VERSION and OPENSTACK_VERSION value according to OS_VERSION and DEPLOY_SCENARIO pass from CI. Change-Id: Ie36f96110c24d7cda1d2cd73bebcef86aac8f30d Signed-off-by: liyuenan <liyuenan@huawei.com>
-rwxr-xr-x[-rw-r--r--]ci/deploy_ci.sh77
1 files changed, 14 insertions, 63 deletions
diff --git a/ci/deploy_ci.sh b/ci/deploy_ci.sh
index b1d45cde..6d955303 100644..100755
--- a/ci/deploy_ci.sh
+++ b/ci/deploy_ci.sh
@@ -12,74 +12,25 @@
CI_DIR=$(cd $(dirname ${BASH_SOURCE:-$0});pwd)
-if [[ $ROOT_BUILD_CAUSE == MANUALTRIGGER ]]; then
- # For manual ci trigger build, directly use the value pass from CI
- if [[ $COMPASS_OPENSTACK_VERSION == newton ]]; then
+case $DEPLOY_SCENARIO in
+ os-odl_l2-moon-ha)
export COMPASS_OS_VERSION=xenial
- export COMPASS_OPENSTACK_VERSION=newton_xenial
- else
- case $DEPLOY_SCENARIO in
- os-odl_l2-moon-ha)
- # os-odl_l2-moon-ha scenario supports xenial mitaka only
- export COMPASS_OS_VERSION=xenial
- export COMPASS_OPENSTACK_VERSION=mitaka_xenial
- ;;
- os-ocl-nofeature-ha)
- # os-ocl-nofeature-ha scenario supports liberty only
- export COMPASS_OS_VERSION=trusty
- export COMPASS_OPENSTACK_VERSION=liberty
- ;;
- *)
- # setup for testing mitaka by default
- export COMPASS_OS_VERSION=${COMPASS_OS_VERSION:-trusty}
- export COMPASS_OPENSTACK_VERSION=${COMPASS_OPENSTACK_VERSION:-mitaka}
- ;;
- esac
- fi
-
-else
- # For daily build or verify build, adjust COMPASS_OS_VERSION and OPENSTACK_VERSION
- # value according to COMPASS_OS_VERSION and DEPLOY_SCENARIO pass from CI
-
- if [[ $COMPASS_OS_VERSION == centos7 ]]; then
- case $DEPLOY_SCENARIO in
- os-odl_l2-moon-ha)
- # os-odl_l2-moon-ha scenario supports xenial mitaka only
- export COMPASS_OS_VERSION=xenial
- export COMPASS_OPENSTACK_VERSION=mitaka_xenial
- ;;
- os-ocl-nofeature-ha)
- # os-ocl-nofeature-ha scenario supports liberty only
- export COMPASS_OS_VERSION=centos7
- export COMPASS_OPENSTACK_VERSION=liberty
- ;;
- *)
- # setup for testing mitaka by default
+ export COMPASS_OPENSTACK_VERSION=mitaka_xenial
+ ;;
+ os-ocl-nofeature-ha)
+ export COMPASS_OS_VERSION=trusty
+ export COMPASS_OPENSTACK_VERSION=liberty
+ ;;
+ *)
+ if [[ $COMPASS_OS_VERSION == centos7 ]]; then
export COMPASS_OS_VERSION=${COMPASS_OS_VERSION:-centos7}
export COMPASS_OPENSTACK_VERSION=${COMPASS_OPENSTACK_VERSION:-mitaka}
- ;;
- esac
-
- else
- case $DEPLOY_SCENARIO in
- os-odl_l2-moon-ha)
- # os-odl_l2-moon-ha scenario supports xenial mitaka only
- export COMPASS_OS_VERSION=xenial
- export COMPASS_OPENSTACK_VERSION=mitaka_xenial
- ;;
- os-ocl-nofeature-ha)
- # os-ocl-nofeature-ha scenario supports liberty only
- export COMPASS_OS_VERSION=trusty
- export COMPASS_OPENSTACK_VERSION=liberty
- ;;
- *)
- # setup for testing mitaka by default
+ else
export COMPASS_OS_VERSION=${COMPASS_OS_VERSION:-trusty}
export COMPASS_OPENSTACK_VERSION=${COMPASS_OPENSTACK_VERSION:-mitaka}
- ;;
- esac
- fi
-fi
+ fi
+ ;;
+esac
# these variables used by compass
export OS_VERSION=$COMPASS_OS_VERSION