Hashar has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/173312

Change subject: publish-doc rsync now create parent dirs at dest
......................................................................

publish-doc rsync now create parent dirs at dest

rsync only create the direct parent directory at the destination, and
not the whole path.  So if we want to publish a doc to /master/php, the
'master' part is not created.

Overriding the rsync command to 'mkdir /path/ && rsync' fix the issue.

Change-Id: I44dca0066302ee4ae372c1bee494de85345543e9
---
M jjb/doc.yaml
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/integration/config 
refs/changes/12/173312/1

diff --git a/jjb/doc.yaml b/jjb/doc.yaml
index e55a890..b5bdb46 100644
--- a/jjb/doc.yaml
+++ b/jjb/doc.yaml
@@ -62,7 +62,8 @@
             echo "Can not rsync the documentation, aborting."
             exit 1
          fi
-         rsync --recursive --delete-after 
"rsync://10.68.16.255/doc/$ZUUL_UUID"/ "/srv/org/wikimedia/doc/$WMF_CI_DOC_DEST"
+         DEST="/srv/org/wikimedia/doc/$WMF_CI_DOC_DEST"
+         rsync --rsync-path="mkdir -p \"$DEST\" && rsync"  --recursive 
--delete-after "rsync://10.68.16.255/doc/$ZUUL_UUID"/ "$DEST"
      - shell: |
          set +x
          echo

-- 
To view, visit https://gerrit.wikimedia.org/r/173312
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I44dca0066302ee4ae372c1bee494de85345543e9
Gerrit-PatchSet: 1
Gerrit-Project: integration/config
Gerrit-Branch: master
Gerrit-Owner: Hashar <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to