Add ansible jenkins job
[releng/builder.git] / jjb / packaging / packaging-puppet.yaml
diff --git a/jjb/packaging/packaging-puppet.yaml b/jjb/packaging/packaging-puppet.yaml
new file mode 100644 (file)
index 0000000..fb0b185
--- /dev/null
@@ -0,0 +1,126 @@
+---
+- project:
+    name: packaging-puppet
+    project-name: packaging-puppet
+
+    jobs:
+      - '{project-name}-test-sanity-{stream}'
+      - '{project-name}-test-full-{stream}'
+      - gerrit-tox-verify
+
+    project: 'integration/packaging/puppet-opendaylight'
+
+    stream:
+      - master:
+          branch: 'master'
+      - fluorine:
+          branch: 'stable/fluorine'
+      - oxygen:
+          branch: 'stable/oxygen'
+
+- job-template:
+    name: '{project-name}-test-sanity-{stream}'
+
+    node: centos7-docker-1c-4g
+
+    project-type: freestyle
+
+    properties:
+      - opendaylight-infra-properties:
+          build-days-to-keep: 7
+
+    parameters:
+      - opendaylight-infra-parameters:
+          os-cloud: '{os-cloud}'
+          project: '{project}'
+          branch: '{branch}'
+          refspec: 'refs/heads/{branch}'
+          artifacts: '{archive-artifacts}'
+      - string:
+          name: TEST_SUITE
+          default: 'sanity'
+          description: 'Set of tests to execute, Rakefile task'
+
+    scm:
+      - integration-gerrit-scm:
+          basedir: '{project-name}'
+          refspec: '$GERRIT_REFSPEC'
+          branch: '{branch}'
+
+    wrappers:
+      - opendaylight-infra-wrappers:
+          build-timeout: '{build-timeout}'
+
+    builders:
+      - shell: !include-raw: test-puppet.sh
+
+    triggers:
+      - timed: '@monthly'
+      - gerrit-trigger-patch-submitted:
+          gerrit-server-name: '{gerrit-server-name}'
+          project: '{project}'
+          branch: '{branch}'
+          files: '**'
+          forbidden-files: ''
+
+    publishers:
+      - lf-infra-publish
+
+- job-template:
+    name: '{project-name}-test-full-{stream}'
+
+    node: centos7-docker-1c-4g
+
+    project-type: freestyle
+
+    properties:
+      - opendaylight-infra-properties:
+          build-days-to-keep: 7
+
+    parameters:
+      - opendaylight-infra-parameters:
+          os-cloud: '{os-cloud}'
+          project: '{project}'
+          branch: '{branch}'
+          refspec: 'refs/heads/{branch}'
+          artifacts: '{archive-artifacts}'
+      - string:
+          name: TEST_SUITE
+          default: 'acceptance_dock'
+          description: 'Set of tests to execute, Rakefile task'
+
+    scm:
+      - integration-gerrit-scm:
+          basedir: '{project-name}'
+          refspec: '$GERRIT_REFSPEC'
+          branch: '{branch}'
+
+    wrappers:
+      - opendaylight-infra-wrappers:
+          build-timeout: '{build-timeout}'
+
+    builders:
+      - shell: !include-raw: test-puppet.sh
+
+    triggers:
+      - timed: '@weekly'
+      - gerrit:
+          server-name: '{gerrit-server-name}'
+          trigger-on:
+            - comment-added-contains-event:
+                comment-contains-value: 'puppet-test-full'
+          projects:
+            - project-compare-type: 'ANT'
+              project-pattern: '{project}'
+              branches:
+                - branch-compare-type: 'ANT'
+                  branch-pattern: '**/{branch}'
+
+    publishers:
+      - lf-infra-publish
+
+- project:
+    name: packaging-puppet-view
+    views:
+      - project-view
+    project-name: packaging-puppet