From 918fd9b590cff5c50ac28872a61cc542822e9a99 Mon Sep 17 00:00:00 2001 From: meimei Date: Tue, 26 Jan 2016 09:42:57 +0800 Subject: [compass] merge the scripts of compass-deploy-bare.sh and compass-deploy-virtual Change-Id: Ic181b7905a4be532a0fc8737b6af4d7323062a7a Signed-off-by: meimei --- jjb/compass4nfv/compass-ci-jobs.yml | 2 +- jjb/compass4nfv/compass-deploy-bare.sh | 30 ------------------------------ jjb/compass4nfv/compass-deploy-virtual.sh | 26 -------------------------- jjb/compass4nfv/compass-deploy.sh | 2 +- jjb/compass4nfv/compass-project-jobs.yml | 2 +- 5 files changed, 3 insertions(+), 59 deletions(-) delete mode 100644 jjb/compass4nfv/compass-deploy-bare.sh delete mode 100644 jjb/compass4nfv/compass-deploy-virtual.sh diff --git a/jjb/compass4nfv/compass-ci-jobs.yml b/jjb/compass4nfv/compass-ci-jobs.yml index 855793128..2a8248186 100644 --- a/jjb/compass4nfv/compass-ci-jobs.yml +++ b/jjb/compass4nfv/compass-ci-jobs.yml @@ -172,7 +172,7 @@ - shell: !include-raw: ./compass-download-artifact.sh - shell: - !include-raw: ./compass-deploy-bare.sh + !include-raw: ./compass-deploy.sh publishers: - archive: diff --git a/jjb/compass4nfv/compass-deploy-bare.sh b/jjb/compass4nfv/compass-deploy-bare.sh deleted file mode 100644 index dc0aeb29d..000000000 --- a/jjb/compass4nfv/compass-deploy-bare.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/bash -set -x - -# log info to console -echo "Starting the deployment on baremetal environment using $INSTALLER_TYPE. This could take some time..." -echo "--------------------------------------------------------" -echo - -export CONFDIR=$WORKSPACE/deploy/conf/hardware_environment/$NODE_NAME -export ISO_URL=file://$BUILD_DIRECTORY/compass.iso -export INSTALL_NIC=eth0 - -cd $WORKSPACE - -export OS_VERSION=${{COMPASS_OS_VERSION}} -export OPENSTACK_VERSION=${{COMPASS_OPENSTACK_VERSION}} -./deploy.sh --dha $CONFDIR/${{DEPLOY_SCENARIO}}.yml --network $CONFDIR/network.yml -if [ $? -ne 0 ]; then - echo "depolyment failed!" - deploy_ret=1 -fi - -echo -echo "--------------------------------------------------------" -echo "Done!" - -ssh_options="-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" -sshpass -p root scp 2>/dev/null $ssh_options root@${{INSTALLER_IP}}:/var/ansible/run/openstack_${{COMPASS_OPENSTACK_VERSION}}-opnfv2/ansible.log ./ &> /dev/null - -exit $deploy_ret diff --git a/jjb/compass4nfv/compass-deploy-virtual.sh b/jjb/compass4nfv/compass-deploy-virtual.sh deleted file mode 100644 index 4991350a0..000000000 --- a/jjb/compass4nfv/compass-deploy-virtual.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/bash -set -x - -# log info to console -echo "Starting the deployment on virtual environment using $INSTALLER_TYPE. This could take some time..." -echo "--------------------------------------------------------" -echo - -export ISO_URL=file://$BUILD_DIRECTORY/compass.iso -export OS_VERSION=${{COMPASS_OS_VERSION}} -export OPENSTACK_VERSION=${{COMPASS_OPENSTACK_VERSION}} -export CONFDIR=$WORKSPACE/deploy/conf/vm_environment -./deploy.sh --dha $CONFDIR/$DEPLOY_SCENARIO.yml --network $CONFDIR/$NODE_NAME/network.yml -if [ $? -ne 0 ]; then - echo "depolyment failed!" - deploy_ret=1 -fi - -echo -echo "--------------------------------------------------------" -echo "Done!" - -ssh_options="-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" -sshpass -p root scp 2>/dev/null $ssh_options root@${{INSTALLER_IP}}:/var/ansible/run/openstack_${{COMPASS_OPENSTACK_VERSION}}-opnfv2/ansible.log ./ &> /dev/null - -exit $deploy_ret diff --git a/jjb/compass4nfv/compass-deploy.sh b/jjb/compass4nfv/compass-deploy.sh index 7f227708b..979462b19 100644 --- a/jjb/compass4nfv/compass-deploy.sh +++ b/jjb/compass4nfv/compass-deploy.sh @@ -21,7 +21,7 @@ cd $WORKSPACE export OS_VERSION=${{COMPASS_OS_VERSION}} export OPENSTACK_VERSION=${{COMPASS_OPENSTACK_VERSION}} -./deploy.sh --dha ${DHA_CONF} --network ${NETWORK_CONF} +./deploy.sh --dha ${{DHA_CONF}} --network ${{NETWORK_CONF}} if [ $? -ne 0 ]; then echo "depolyment failed!" deploy_ret=1 diff --git a/jjb/compass4nfv/compass-project-jobs.yml b/jjb/compass4nfv/compass-project-jobs.yml index da054220b..09fad2608 100644 --- a/jjb/compass4nfv/compass-project-jobs.yml +++ b/jjb/compass4nfv/compass-project-jobs.yml @@ -104,7 +104,7 @@ - shell: !include-raw: ./compass-build.sh - shell: - !include-raw: ./compass-deploy-virtual.sh + !include-raw: ./compass-deploy.sh publishers: - archive: -- cgit 1.2.3-korg