From c78975c8c9c4c6e1a91202dc4c10397bcc69f77a Mon Sep 17 00:00:00 2001 From: Michael Beaver Date: Fri, 7 Jun 2019 09:54:12 -0500 Subject: [PATCH] Add vars to Airskiff to not clone specific repos This adds new variables to the 005-clone-dependencies script in Airskiff to be able to turn off cloning for the Airship repositories. The intended use case of this is so the Airskiff gate can avoid cloning the repository it is currently testing. Change-Id: I629ce9373b1b68f7e5fb6b134d9ea063a344a70c --- .../airskiff/developer/005-clone-dependencies.sh | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/tools/deployment/airskiff/developer/005-clone-dependencies.sh b/tools/deployment/airskiff/developer/005-clone-dependencies.sh index af5c31c00..2a068f0c2 100755 --- a/tools/deployment/airskiff/developer/005-clone-dependencies.sh +++ b/tools/deployment/airskiff/developer/005-clone-dependencies.sh @@ -20,13 +20,22 @@ set -xe CURRENT_DIR="$(pwd)" : "${INSTALL_PATH:="../"}" : "${OSH_INFRA_COMMIT:="6d0a9c21b0455e9d674d525c5e0cd0d5d53f0f85"}" +: "${CLONE_ARMADA:=true}" +: "${CLONE_DECKHAND:=true}" +: "${CLONE_SHIPYARD:=true}" cd ${INSTALL_PATH} # Clone Airship projects -git clone https://opendev.org/airship/armada.git -git clone https://opendev.org/airship/deckhand.git -git clone https://opendev.org/airship/shipyard.git +if [[ ${CLONE_ARMADA} = true ]] ; then + git clone https://opendev.org/airship/armada.git +fi +if [[ ${CLONE_DECKHAND} = true ]] ; then + git clone https://opendev.org/airship/deckhand.git +fi +if [[ ${CLONE_SHIPYARD} = true ]] ; then + git clone https://opendev.org/airship/shipyard.git +fi # Clone dependencies git clone https://opendev.org/openstack/openstack-helm-infra.git