jenkins-bot has submitted this change and it was merged.
Change subject: Avoid cleaning doc when ZUUL_UUID is not set
......................................................................
Avoid cleaning doc when ZUUL_UUID is not set
d08c41f aborts the publish doc script whenever ZUUL_UUID is not set, but
we could potentially still run the cleanup postbuild task. Without a
ZUUL_UUID that would delete everything from the publishing instance
which can delete a doc pending publishing.
Change-Id: I1acb509cfb395aa8087a765f4e021cb2b0a58f18
---
M jjb/doc.yaml
1 file changed, 5 insertions(+), 0 deletions(-)
Approvals:
Hashar: Looks good to me, approved
jenkins-bot: Verified
diff --git a/jjb/doc.yaml b/jjb/doc.yaml
index 172d777..e55a890 100644
--- a/jjb/doc.yaml
+++ b/jjb/doc.yaml
@@ -72,6 +72,11 @@
- postbuildscript:
builders:
- shell: |
+ if [ -z $ZUUL_UUID ]; then
+ # Avoid deleting all pending doc when ZUUL_UUID is not set
+ echo "\$ZUUL_UUID is not set, skipping removal from
publishing instance."
+ exit 0
+ fi
echo "Removing directory from publishing instance..."
rm -rf "$ZUUL_UUID"
# The trick here is that the local side of the rsync does not
--
To view, visit https://gerrit.wikimedia.org/r/173028
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I1acb509cfb395aa8087a765f4e021cb2b0a58f18
Gerrit-PatchSet: 1
Gerrit-Project: integration/config
Gerrit-Branch: master
Gerrit-Owner: Hashar <[email protected]>
Gerrit-Reviewer: Hashar <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits