jenkins-bot has submitted this change and it was merged.
Change subject: {name}-jslint job template is now generic
......................................................................
{name}-jslint job template is now generic
The jslint job template was hardcoded to fetch MediaWiki core which
prevented the template from being reused on other projects.
That slightly change mediawiki-core-jslint job which is now deleting its
workspace and recloning the repository (still without submodules). That
is fast enough by my tests.
I have assigned the jobs to hasSlaveScripts since it needs jshint.
Change-Id: I7048bd5712b43b96ffd51cf4e0d5e38bde59ec3a
---
M job-templates.yaml
M mediawiki.yaml
2 files changed, 14 insertions(+), 11 deletions(-)
Approvals:
Hashar: Looks good to me, approved
jenkins-bot: Verified
diff --git a/job-templates.yaml b/job-templates.yaml
index 8d0db1b..6d3e1af 100644
--- a/job-templates.yaml
+++ b/job-templates.yaml
@@ -9,6 +9,20 @@
builders:
- erblint-HEAD
+# Generic job to run JSHint
+- job-template:
+ name: '{name}-jslint'
+ node: hasSlaveScripts
+ defaults: use-zuul
+ triggers:
+ - zuul
+ scm:
+ - git-zuul:
+ gerrit-name: '{gerrit-name}'
+ disable-submodules: true
+ builders:
+ - jshint
+
- job-template:
name: '{name}-pplint-HEAD'
node: hasSlaveScripts
diff --git a/mediawiki.yaml b/mediawiki.yaml
index 2f8b101..0c47d4d 100644
--- a/mediawiki.yaml
+++ b/mediawiki.yaml
@@ -28,17 +28,6 @@
builders:
- phplint
-# Generic job to run JSHint
-- job-template:
- name: '{name}-jslint'
- defaults: use-zuul
- scm:
- - git-mwcore-nosubmodules
- triggers:
- - zuul
- builders:
- - jshint
-
# Generic job to run QUnit
- job-template:
name: '{name}-qunit'
--
To view, visit https://gerrit.wikimedia.org/r/77303
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I7048bd5712b43b96ffd51cf4e0d5e38bde59ec3a
Gerrit-PatchSet: 1
Gerrit-Project: integration/jenkins-job-builder-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