Hashar has uploaded a new change for review.

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


Change subject: inject $wgWikimediaJenkinsCI = true
......................................................................

inject $wgWikimediaJenkinsCI = true

That is an horrrrible hack to let extensions (such as Wikibase) behave
differently when being run on Wikimedia Jenkins CI.  That is more or
less needed when running Wikibase under Apache for QUnit, since the
Jenkins environnement variables are not available to the Apache process,
the Wikibase entry point had no real way to detect where it was running
(currently uses JOB_NAME env variable, which is not set).

Change-Id: Ice52170ee507a34d15316580ad6be3ba83f01a04
---
M macro.yaml
1 file changed, 2 insertions(+), 0 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/integration/jenkins-job-builder-config 
refs/changes/10/89710/1

diff --git a/macro.yaml b/macro.yaml
index abf48a9..907637a 100644
--- a/macro.yaml
+++ b/macro.yaml
@@ -232,6 +232,8 @@
         #!/bin/bash -xe
         # Inject in LocalSettings.php some code to automatically load
         # installed extensions.
+        echo -e "$wgWikimediaJenkinsCI = true;\n" \
+        >> "$WORKSPACE/LocalSettings.php"
         echo "require_once( '/var/lib/jenkins/tools/extensions-loader.php' );" 
\
         >> "$WORKSPACE/LocalSettings.php"
      - mw-run-update-script

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ice52170ee507a34d15316580ad6be3ba83f01a04
Gerrit-PatchSet: 1
Gerrit-Project: integration/jenkins-job-builder-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