summaryrefslogtreecommitdiffstats
path: root/ci
diff options
context:
space:
mode:
authorNarinder Gupta <narinder.gupta@canonical.com>2016-09-08 13:39:54 -0500
committerNarinder Gupta <narinder.gupta@canonical.com>2016-09-08 18:41:55 +0000
commit05f24781ddff8cc1ea9ad64634438415295f6023 (patch)
treee60d642eda1773af845be866d8181312a33731f5 /ci
parent06ccc9f0c3b196831353cd5f5497a0462f8fec57 (diff)
modified to backup and restore deployment.yaml
Change-Id: Id19a574024172fc9b50b9016361cc465e0088bd7 Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com> (cherry picked from commit 2ead372983bbb1fb9f258c638d1d559a4f28c53f)
Diffstat (limited to 'ci')
-rwxr-xr-xci/00-maasdeploy.sh4
-rwxr-xr-xci/deploy.sh3
2 files changed, 7 insertions, 0 deletions
diff --git a/ci/00-maasdeploy.sh b/ci/00-maasdeploy.sh
index 0dfff050..e3490c2f 100755
--- a/ci/00-maasdeploy.sh
+++ b/ci/00-maasdeploy.sh
@@ -158,6 +158,10 @@ if [ -e ./deployconfig.yaml ]; then
cp ./labconfig.yaml ~/.juju/
fi
+if [ -e ./deployment.yaml ]; then
+ cp ./deployment.yaml ~/.juju/
+fi
+
#
# MAAS Customization
#
diff --git a/ci/deploy.sh b/ci/deploy.sh
index dbe0ef97..3b5e5002 100755
--- a/ci/deploy.sh
+++ b/ci/deploy.sh
@@ -110,6 +110,9 @@ deploy() {
if [ ! -f ./environments.yaml ] && [ -e ~/.juju/environments.yaml ]; then
cp ~/.juju/environments.yaml ./environments.yaml
fi
+ if [ ! -f ./deployment.yaml ] && [ -e ~/.juju/deployment.yaml ]; then
+ cp ~/.juju/deployment.yaml ./deployment.yaml
+ fi
if [ ! -f ./labconfig.yaml ] && [ -e ~/.juju/labconfig.yaml ]; then
cp ~/.juju/labconfig.yaml ./labconfig.yaml
fi