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

Change subject: mw-apply-settings: make sure log dir exist
......................................................................


mw-apply-settings: make sure log dir exist

Change-Id: I65b5e28f7216e8c0baad96910083ff8462ce2d27
---
M bin/mw-apply-settings.sh
1 file changed, 5 insertions(+), 1 deletion(-)

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



diff --git a/bin/mw-apply-settings.sh b/bin/mw-apply-settings.sh
index 2eda3bb..c205a1c 100755
--- a/bin/mw-apply-settings.sh
+++ b/bin/mw-apply-settings.sh
@@ -2,10 +2,14 @@
 LOCAL_SETTINGS="$WORKSPACE/LocalSettings.php"
 MEDIAWIKI_D="/srv/slave-scripts/mediawiki/conf.d"
 
+# Setup Junit destination
+LOG_DIR="$WORKSPACE/log"
+
 php "$MEDIAWIKI_D/_join.php" >> "$LOCAL_SETTINGS"
 
 # Copy under /log for archival purposes
-cp "$LOCAL_SETTINGS" "$WORKSPACE/log/"
+mkdir -p "$LOG_DIR"
+cp "$LOCAL_SETTINGS" "$LOG_DIR"
 
 echo "Making sure $LOCAL_SETTINGS is still valid"
 php -l "$LOCAL_SETTINGS"

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I65b5e28f7216e8c0baad96910083ff8462ce2d27
Gerrit-PatchSet: 1
Gerrit-Project: integration/jenkins
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

Reply via email to