Hashar has submitted this change and it was merged.

Change subject: trigger PHP related job only when PHP files are changed
......................................................................


trigger PHP related job only when PHP files are changed

Would skip the build whenever a patchset is not altering a file ending
with either php, php5, phtml or inc.

Change-Id: I054abdfaf3fbc767f1cdc90646bb934477df3e94
---
M layout.yaml
1 file changed, 10 insertions(+), 0 deletions(-)

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



diff --git a/layout.yaml b/layout.yaml
index 276aa9c..92edc66 100644
--- a/layout.yaml
+++ b/layout.yaml
@@ -265,8 +265,18 @@
   # PHP CodeSniffer (experimental)
   - name: ^.*-phpcs$
     voting: false
+    files:
+     - '^.*\.(php|php5|phtml|inc)$'
   - name: ^.*-phpcs-HEAD$
     voting: false
+    files:
+     - '^.*\.(php|php5|phtml|inc)$'
+  - name: ^.*-phplint$
+    files:
+     - '^.*\.(php|php5|phtml|inc)$'
+  - name: ^mediawiki-core-lint$
+    files:
+     - '^.*\.(php|php5|phtml|inc)$'
 
   # Rejecting changes having trailing whitespaces cause too many false
   # positives. So only report the whitespace issues, but don't let it vote.

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I054abdfaf3fbc767f1cdc90646bb934477df3e94
Gerrit-PatchSet: 3
Gerrit-Project: integration/zuul-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

Reply via email to