jenkins-bot has submitted this change and it was merged. 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, 5 insertions(+), 0 deletions(-) Approvals: Hashar: Looks good to me, approved jenkins-bot: Verified diff --git a/macro.yaml b/macro.yaml index abf48a9..55e917e 100644 --- a/macro.yaml +++ b/macro.yaml @@ -232,6 +232,11 @@ #!/bin/bash -xe # Inject in LocalSettings.php some code to automatically load # installed extensions. + + # XXX: be careful, need to escape $ !!! + # + 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: merged Gerrit-Change-Id: Ice52170ee507a34d15316580ad6be3ba83f01a04 Gerrit-PatchSet: 2 Gerrit-Project: integration/jenkins-job-builder-config Gerrit-Branch: master Gerrit-Owner: Hashar <has...@free.fr> Gerrit-Reviewer: Hashar <has...@free.fr> Gerrit-Reviewer: jenkins-bot _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits