Merge "Introducing rsync in docs publish. Removing olt scp plugin."
diff --git a/jjb/charts.yaml b/jjb/charts.yaml
index ce2fd37..b4f0590 100644
--- a/jjb/charts.yaml
+++ b/jjb/charts.yaml
@@ -53,12 +53,4 @@
helm init --client-only
helm repo add incubator https://kubernetes-charts-incubator.storage.googleapis.com/
./scripts/helmrepo.sh
-
-# publish over ssh: https://docs.openstack.org/infra/jenkins-job-builder/publishers.html#publishers.ssh
- publishers:
- - ssh:
- site: '{docs-ssh-host}'
- source: 'chart_repo/**'
- remove-prefix: 'chart_repo'
- target: '//var/www/charts/$GERRIT_BRANCH'
-
+ rsync -rvzh --delete chart_repo/ {docs-ssh-host}:/var/www/charts/$GERRIT_BRANCH
diff --git a/jjb/docs-legacy.yaml b/jjb/docs-legacy.yaml
index 69dcafa..c8875ca 100644
--- a/jjb/docs-legacy.yaml
+++ b/jjb/docs-legacy.yaml
@@ -95,16 +95,5 @@
- shell: |
cd cord/build/docs
make build
-
-# publish over ssh: https://docs.openstack.org/infra/jenkins-job-builder/publishers.html#publishers.ssh
- publishers:
- - ssh:
- site: '{docs-ssh-host}'
- source: 'cord/build/docs/_book/**'
- remove-prefix: 'cord/build/docs/_book'
- target: '//var/www/guide/$GERRIT_BRANCH'
- - ssh:
- site: '{docs-ssh-host}'
- source: 'cord/build/docs/xos/swagger/**'
- remove-prefix: 'cord/build/docs/xos'
- target: '//var/www/guide/$GERRIT_BRANCH'
+ rsync -rvzh --delete cord/docs/_book/ {docs-ssh-host}:/var/www/guide/$GERRIT_BRANCH
+ rsync -rvzh --delete cord/docs/xos/swagger/ {docs-ssh-host}:/var/www/guide/$GERRIT_BRANCH
diff --git a/jjb/docs.yaml b/jjb/docs.yaml
index aec942f..4cbe987 100644
--- a/jjb/docs.yaml
+++ b/jjb/docs.yaml
@@ -138,16 +138,5 @@
- shell: |
cd cord/docs
make build
-
-# publish over ssh: https://docs.openstack.org/infra/jenkins-job-builder/publishers.html#publishers.ssh
- publishers:
- - ssh:
- site: '{docs-ssh-host}'
- source: 'cord/docs/_book/**'
- remove-prefix: 'cord/docs/_book'
- target: '//var/www/guide/$GERRIT_BRANCH'
- - ssh:
- site: '{docs-ssh-host}'
- source: 'cord/docs/xos/swagger/**'
- remove-prefix: 'cord/docs/xos'
- target: '//var/www/guide/$GERRIT_BRANCH'
+ rsync -rvzh --delete cord/docs/_book/ {docs-ssh-host}:/var/www/guide/$GERRIT_BRANCH
+ rsync -rvzh --delete cord/docs/xos/swagger/ {docs-ssh-host}:/var/www/guide/$GERRIT_BRANCH