Hashar has submitted this change and it was merged.

Change subject: generic puppet validation macro and job template
......................................................................


generic puppet validation macro and job template

Being used for mediawiki/vagrant.git

Change-Id: Ie739e2e1793137bbea03ef5729ed56a9f54bb35c
---
M job-templates.yaml
M macro.yaml
A mediawiki-vagrant.yaml
3 files changed, 22 insertions(+), 0 deletions(-)

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



diff --git a/job-templates.yaml b/job-templates.yaml
index 0ff8172..1ba0647 100644
--- a/job-templates.yaml
+++ b/job-templates.yaml
@@ -51,6 +51,16 @@
      - phpcs
 
 - job-template:
+    name: '{name}-puppet-validate'
+    defaults: use-zuul
+
+    triggers:
+     - zuul
+
+    builders:
+     - puppet-validate
+
+- job-template:
     name: '{name}-rubylint'
     defaults: use-zuul
 
diff --git a/macro.yaml b/macro.yaml
index 182d90a..7691f0f 100644
--- a/macro.yaml
+++ b/macro.yaml
@@ -294,6 +294,12 @@
         make
         make test
 
+- builder:
+    name: puppet-validate
+    builders:
+     - shell: |
+        find . -type f -name '*.pp' -print0 | xargs -0 puppet parser validate
+
 # Run ruby syntax check against any file named '.rb' under the workspace.
 # The ruby interpreter is passed using 'interpreter'
 - builder:
diff --git a/mediawiki-vagrant.yaml b/mediawiki-vagrant.yaml
new file mode 100644
index 0000000..e02196d
--- /dev/null
+++ b/mediawiki-vagrant.yaml
@@ -0,0 +1,6 @@
+- project:
+    name: 'mediawiki-vagrant'
+    gerrit-name: 'mediawiki/vagrant'
+
+    jobs:
+     - '{name}-puppet-validate'

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ie739e2e1793137bbea03ef5729ed56a9f54bb35c
Gerrit-PatchSet: 1
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

Reply via email to