Fixes to documentation rsync copy job
Change-Id: I1644624a2ef950d9c9f92258bd8dda074c37de16
diff --git a/jjb/charts.yaml b/jjb/charts.yaml
index b4f0590..63444cd 100644
--- a/jjb/charts.yaml
+++ b/jjb/charts.yaml
@@ -50,7 +50,17 @@
builders:
- shell: |
+ #!/usr/bin/env bash
+
+ # Set up the ssh host keys for the docs host
+ mkdir -p ~/.ssh
+ echo '{docs-ssh-host-key}' >> ~/.ssh/known_hosts
+
+ # Setup and build the helm repo
helm init --client-only
helm repo add incubator https://kubernetes-charts-incubator.storage.googleapis.com/
./scripts/helmrepo.sh
+
+ # Copy repo to host
rsync -rvzh --delete chart_repo/ {docs-ssh-host}:/var/www/charts/$GERRIT_BRANCH
+