summaryrefslogtreecommitdiffstats
path: root/ci
diff options
context:
space:
mode:
authorliyuenan <liyuenan@huawei.com>2016-12-20 16:44:59 +0800
committerliyuenan <liyuenan@huawei.com>2016-12-22 10:54:34 +0800
commita9041dbf7b68f56169e82de3c37601b7e86867b0 (patch)
tree8364c3b523bc0ac1e8dceda0d66eed4b8d2816f5 /ci
parent819912d0379f6cd2b2693c2968576f7514a117c5 (diff)
Change newton_xenial to newton
JIRA: COMPASS-513 Change-Id: I937a02bcd69f0df1f5d951dd6630ef2e76e8d386 Signed-off-by: liyuenan <liyuenan@huawei.com>
Diffstat (limited to 'ci')
-rwxr-xr-xci/deploy_ci.sh103
1 files changed, 33 insertions, 70 deletions
diff --git a/ci/deploy_ci.sh b/ci/deploy_ci.sh
index b4e8541e..34ff0af0 100755
--- a/ci/deploy_ci.sh
+++ b/ci/deploy_ci.sh
@@ -12,82 +12,45 @@
CI_DIR=$(cd $(dirname ${BASH_SOURCE:-$0});pwd)
+# FIXME: Some scenarios need to update.
+case $DEPLOY_SCENARIO in
+ os-odl_l3-nofeture-ha)
+ echo "os-odl_l3-nofeature-ha scenario supports mitaka only"
+ exit 1
+ ;;
+ os-odl_l2-moon-ha)
+ echo "os-odl_l2-moon-ha scenario supports xenial mitaka only"
+ exit 1
+ ;;
+ os-onos-nofeature-ha)
+ echo "os-onos-nofeature-ha scenario supports mitaka only"
+ exit 1
+ ;;
+ os-onos-sfc-ha)
+ echo "os-onos-sfc-ha scenario supports mitaka only"
+ exit 1
+ ;;
+ os-ocl-nofeature-ha)
+ echo "os-ocl-nofeature-ha scenario supports liberty only"
+ exit 1
+ ;;
+esac
+
if [[ $ROOT_BUILD_CAUSE == MANUALTRIGGER ]]; then
- # For manual ci trigger build, directly use the value pass from CI
- if [[ $COMPASS_OPENSTACK_VERSION == newton ]]; then
- 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
+# For manual ci trigger build, directly use the value pass from CI
+ export COMPASS_OS_VERSION=${COMPASS_OS_VERSION:-xenial}
+ export COMPASS_OPENSTACK_VERSION=${COMPASS_OPENSTACK_VERSION:-newton}
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
+# For daily build or verify build, adjust COMPASS_OS_VERSION and OPENSTACK_VERSION
+# value according to COMPASS_OS_VERSION 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_OS_VERSION=${COMPASS_OS_VERSION:-centos7}
- export COMPASS_OPENSTACK_VERSION=${COMPASS_OPENSTACK_VERSION:-mitaka}
- ;;
- esac
-
+ export COMPASS_OS_VERSION=${COMPASS_OS_VERSION:-centos7}
+ export COMPASS_OPENSTACK_VERSION=${COMPASS_OPENSTACK_VERSION:-newton}
else
- case $DEPLOY_SCENARIO in
- os-nosdn-nofeature-ha)
- # temporarily setup for testing newton
- export COMPASS_OS_VERSION=xenial
- export COMPASS_OPENSTACK_VERSION=newton_xenial
- ;;
- os-odl_2-nofeature-ha)
- # temporarily setup for testing newton
- export COMPASS_OS_VERSION=xenial
- export COMPASS_OPENSTACK_VERSION=newton_xenial
- ;;
- 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
+ export COMPASS_OS_VERSION=${COMPASS_OS_VERSION:-xenial}
+ export COMPASS_OPENSTACK_VERSION=${COMPASS_OPENSTACK_VERSION:-newton}
fi
fi