jenkins-bot has submitted this change and it was merged.

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


publish-doc rsync now create parent dirs at dest

The job run on gallium which hosts doc.wikimedia.org. Just mkdir -p to
ensure the target destination is populated since rsync only create the
immediate parent.

So if we want to publish a doc to /master/php, the 'master' part is not
created by rsync.

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

Approvals:
  Hashar: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/jjb/doc.yaml b/jjb/doc.yaml
index e55a890..0c457ec 100644
--- a/jjb/doc.yaml
+++ b/jjb/doc.yaml
@@ -62,7 +62,9 @@
             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"
+         LOCAL_DEST="/srv/org/wikimedia/doc/$WMF_CI_DOC_DEST"
+         mkdir -p "$LOCAL_DEST"
+         rsync --recursive --delete-after 
"rsync://10.68.16.255/doc/$ZUUL_UUID"/ "$LOCAL_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: merged
Gerrit-Change-Id: I44dca0066302ee4ae372c1bee494de85345543e9
Gerrit-PatchSet: 2
Gerrit-Project: integration/config
Gerrit-Branch: master
Gerrit-Owner: Hashar <[email protected]>
Gerrit-Reviewer: BryanDavis <[email protected]>
Gerrit-Reviewer: Hashar <[email protected]>
Gerrit-Reviewer: Krinkle <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to