Merge "Remove Mongo dependency from Spectrometer"
[releng/builder.git] / jjb / releng-jobs.yaml
index 8f54259dd4d09cf5b991d1de2e0049a1a08e6dd9..392b0c3866e3ccab79d0085d7897125d10de2aaf 100644 (file)
@@ -6,24 +6,62 @@
         - 'builder-merge'
         - 'builder-weekly'
         - 'builder-check-poms'
+        - 'builder-verify-packer-{platforms}-{templates}'
+        - 'builder-merge-packer-{platforms}-{templates}'
+
+    platforms:
+        - centos
+        - ubuntu-14.04
+
+    templates:
+        - devstack
+        - docker
+        - gbp
+        - java-builder
+        - mininet
+        - mininet-ovs-2.3
+        - mininet-ovs-2.5
+        - robot
+
+    exclude:
+        - platforms: centos
+          templates: gbp
+        - platforms: centos
+          templates: mininet
+        - platforms: centos
+          templates: mininet-ovs-2.3
+        - platforms: centos
+          templates: mininet-ovs-2.5
+        - platforms: ubuntu-14.04
+          templates: java-builder
+        - platforms: centos
+          templates: gbp
+        - platforms: ubuntu-14.04
+          templates: robot
 
+    project-type: freestyle
+    archive-artifacts: '**/*.log'
+    build-timeout: '60'
+    # The following two values are only specified here
+    # so that code blocks look similar to other projects.
     project: 'releng/builder'
+    branch: 'master'
 
 - job-template:
     name: builder-verify-jjb
-    disabled: {disabled}
     node: jjbuilder
 
     project-type: freestyle
 
-    logrotate:
-        daysToKeep: 7
+    properties:
+        - opendaylight-infra-properties:
+            build-days-to-keep: 14
 
     parameters:
         - opendaylight-infra-parameters:
             project: '{project}'
-            branch: 'master'
-            refspec: 'refs/heads/master'
+            branch: '{branch}'
+            refspec: 'refs/heads/{branch}'
             artifacts: '{archive-artifacts}'
 
     scm:
             build-timeout: '{build-timeout}'
 
     triggers:
-        - gerrit:
-            server-name: 'OpenDaylight'
-            trigger-on:
-                - patchset-created-event:
-                    exclude-drafts: 'false'
-                    exclude-trivial-rebase: 'false'
-                    exclude-no-code-change: 'false'
-                - draft-published-event
-                - comment-added-contains-event:
-                    comment-contains-value: 'recheck'
-            projects:
-              - project-compare-type: 'ANT'
-                project-pattern: 'releng/builder'
-                branches:
-                  - branch-compare-type: 'ANT'
-                    branch-pattern: '**/master'
-                file-paths:
-                    - compare-type: ANT
-                      pattern: jjb/**
-                    - compare-type: ANT
-                      pattern: jjb-templates/**
+        - gerrit-trigger-patch-submitted:
+            server: '{server-name}'
+            project: '{project}'
+            branch: '{branch}'
+            files: 'jjb/**'
 
     builders:
-        - opendaylight-infra-pre-builders
         - shell: |
             pip freeze
             jenkins-jobs -l DEBUG test --recursive -o archives/job_output jjb/
             gzip archives/job_output/*
+
         - releng-check-unicode
+        - verify-gpg-signature
 
     publishers:
         - email-notification:
+            email-recipients: '{email-recipients}'
             email-prefix: '[releng]'
-        - archive-build:
-            maven-version: '{mvn33}'
+        - opendaylight-infra-shiplogs:
+            maven-version: 'mvn33'
 
+# FIXME: Migrate to {project-name}-verify-python-{stream} or delete this entirely,
+#        as there are zero python files (aside docs/conf.py) in releng/builder.
 - job-template:
     name: builder-verify-python
-    disabled: {disabled}
     node: centos7-java-builder-2c-8g
 
     project-type: freestyle
 
-    logrotate:
-        daysToKeep: 7
-        numToKeep: 10
-        artifactDaysToKeep: -1
-        artifactNumToKeep: -1
+    properties:
+        - opendaylight-infra-properties:
+            build-days-to-keep: 14
 
     parameters:
         - opendaylight-infra-parameters:
             project: '{project}'
-            branch: 'master'
-            refspec: 'refs/heads/master'
+            branch: '{branch}'
+            refspec: 'refs/heads/{branch}'
             artifacts: '{archive-artifacts}'
 
     scm:
             build-timeout: '{build-timeout}'
 
     triggers:
-        - gerrit:
-            server-name: 'OpenDaylight'
-            trigger-on:
-                - patchset-created-event:
-                    exclude-drafts: 'false'
-                    exclude-trivial-rebase: 'false'
-                    exclude-no-code-change: 'false'
-                - draft-published-event
-                - comment-added-contains-event:
-                    comment-contains-value: 'recheck'
-            projects:
-              - project-compare-type: 'ANT'
-                project-pattern: 'releng/builder'
-                branches:
-                  - branch-compare-type: 'ANT'
-                    branch-pattern: '**/master'
-                file-paths:
-                    - compare-type: ANT
-                      pattern: scripts/**
-
+        - gerrit-trigger-patch-submitted:
+            server: '{server-name}'
+            project: '{project}'
+            branch: '{branch}'
+            files: 'scripts/**'
 
     builders:
-        - opendaylight-infra-pre-builders
+        - verify-gpg-signature
         - shell: |
             virtualenv $WORKSPACE/venv
             source $WORKSPACE/venv/bin/activate
 
     publishers:
         - email-notification:
+            email-recipients: '{email-recipients}'
             email-prefix: '[releng]'
-        - archive-build:
-            maven-version: '{mvn33}'
+        - opendaylight-infra-shiplogs:
+            maven-version: 'mvn33'
 
 - job-template:
     name: 'builder-merge'
-    disabled: {disabled}
     node: jjbuilder
 
     # builder-merge job to run JJB update
 
     project-type: freestyle
 
-    logrotate:
-        daysToKeep: 7
-        numToKeep: 3
-        artifactDaysToKeep: -1
-        artifactNumToKeep: -1
+    properties:
+        - opendaylight-infra-properties:
+            build-days-to-keep: 14
 
     parameters:
         - opendaylight-infra-parameters:
             project: '{project}'
-            branch: 'master'
-            refspec: 'refs/heads/master'
+            branch: '{branch}'
+            refspec: 'refs/heads/{branch}'
             artifacts: '{archive-artifacts}'
 
     scm:
 
     triggers:
         - gerrit:
-            server-name: 'OpenDaylight'
+            server-name: '{server-name}'
             trigger-on:
                 - change-merged-event
                 - comment-added-contains-event:
                 project-pattern: 'releng/builder'
                 branches:
                     - branch-compare-type: 'ANT'
-                      branch-pattern: '**/master'
+                      branch-pattern: '**/{branch}'
                 file-paths:
                     - compare-type: ANT
                       pattern: jjb/**
-                    - compare-type: ANT
-                      pattern: jjb-templates/**
 
     builders:
-        - opendaylight-infra-pre-builders
         - shell: |
             pip freeze
             jenkins-jobs --version
 
     publishers:
         - email-notification:
+            email-recipients: '{email-recipients}'
             email-prefix: '[releng]'
-        - archive-build:
-            maven-version: '{mvn33}'
+        - opendaylight-infra-shiplogs:
+            maven-version: 'mvn33'
 
 - job-template:
     name: 'builder-weekly'
 
     project-type: freestyle
 
-    logrotate:
-        daysToKeep: 7
-        numToKeep: 3
-        artifactDaysToKeep: -1
-        artifactNumToKeep: -1
+    properties:
+        - opendaylight-infra-properties:
+            build-days-to-keep: 14
 
     parameters:
         - opendaylight-infra-parameters:
             project: '{project}'
-            branch: 'master'
-            refspec: 'refs/heads/master'
+            branch: '{branch}'
+            refspec: 'refs/heads/{branch}'
             artifacts: '{archive-artifacts}'
 
     scm:
         - git-scm:
-            branch: 'master'
+            branch: '{branch}'
 
     wrappers:
         - opendaylight-infra-wrappers:
         - timed: 'H H * * 0'
 
     builders:
-        - opendaylight-infra-pre-builders
         - shell: |
             jenkins-jobs --flush-cache update --recursive jjb/
 
     publishers:
         - email-notification:
+            email-recipients: '{email-recipients}'
             email-prefix: '[releng]'
-        - archive-build:
-            maven-version: '{mvn33}'
+        - opendaylight-infra-shiplogs:
+            maven-version: 'mvn33'
 
 - job-template:
     name: builder-check-poms
-    disabled: {disabled}
     node: centos7-java-builder-2c-8g
 
     project-type: freestyle
 
-    logrotate:
-        daysToKeep: 1
-        numToKeep: 1
-        artifactDaysToKeep: -1
-        artifactNumToKeep: -1
+    properties:
+        - opendaylight-infra-properties:
+            build-days-to-keep: 14
 
     parameters:
         - opendaylight-infra-parameters:
             project: '{project}'
-            branch: 'master'
-            refspec: 'refs/heads/master'
+            branch: '{branch}'
+            refspec: 'refs/heads/{branch}'
             artifacts: '{archive-artifacts}'
 
     wrappers:
         - timed: 'H H * * 1'
 
     builders:
-        - opendaylight-infra-pre-builders
         - shell:
             !include-raw-escape:
                 - include-raw-check-poms.sh
 
     publishers:
         - email-notification:
+            email-recipients: '{email-recipients}'
             email-prefix: '[releng]'
-        - archive-build:
-            maven-version: '{mvn33}'
+        - opendaylight-infra-shiplogs:
+            maven-version: 'mvn33'
+
+- job-template:
+    name: 'builder-verify-packer-{platforms}-{templates}'
+    project-type: freestyle
+    node: centos7-java-builder-2c-8g
+    concurrent: true
+
+    properties:
+        - opendaylight-infra-properties:
+            build-days-to-keep: 14
+
+    parameters:
+        - opendaylight-infra-parameters:
+            project: '{project}'
+            branch: '{branch}'
+            refspec: 'refs/heads/{branch}'
+            artifacts: '{archive-artifacts}'
+
+    scm:
+        - gerrit-trigger-scm:
+            refspec: '$GERRIT_REFSPEC'
+            choosing-strategy: 'gerrit'
+
+    wrappers:
+        - opendaylight-infra-wrappers:
+            build-timeout: '{build-timeout}'
+
+    triggers:
+        - gerrit-trigger-patch-submitted:
+            server: '{server-name}'
+            project: '{project}'
+            branch: '{branch}'
+            files: 'packer/**'
+
+    builders:
+        - packer-validate:
+            platform: '{platforms}'
+            template: '{templates}'
+
+    publishers:
+        - email-notification:
+            email-recipients: '{email-recipients}'
+            email-prefix: '[{project}]'
+        - opendaylight-infra-shiplogs:
+            maven-version: 'mvn33'
+
+- job-template:
+    name: 'builder-merge-packer-{platforms}-{templates}'
+    project-type: freestyle
+    node: centos7-java-builder-2c-8g
+    concurrent: true
+
+    properties:
+        - opendaylight-infra-properties:
+            build-days-to-keep: 14
+
+    parameters:
+        - opendaylight-infra-parameters:
+            project: '{project}'
+            branch: '{branch}'
+            refspec: 'refs/heads/{branch}'
+            artifacts: '{archive-artifacts}'
+
+    scm:
+        - gerrit-trigger-scm:
+            refspec: ''
+            choosing-strategy: 'default'
+
+    wrappers:
+        - opendaylight-infra-wrappers:
+            build-timeout: '{build-timeout}'
+
+    triggers:
+        - timed: '00 10 1 * *'
+        - gerrit:
+            server-name: '{server-name}'
+            trigger-on:
+                - change-merged-event
+                - comment-added-contains-event:
+                    comment-contains-value: 'remerge'
+            projects:
+              - project-compare-type: 'ANT'
+                project-pattern: 'releng/builder'
+                branches:
+                    - branch-compare-type: 'ANT'
+                      branch-pattern: '**/{branch}'
+                file-paths:
+                    - compare-type: ANT
+                      pattern: 'packer/**'
+
+    builders:
+        - packer-validate:
+            platform: '{platforms}'
+            template: '{templates}'
+        - packer-build:
+            platform: '{platforms}'
+            template: '{templates}'
+
+    publishers:
+        - email-notification:
+            email-recipients: '{email-recipients}'
+            email-prefix: '[{project}]'
+        - opendaylight-infra-shiplogs:
+            maven-version: 'mvn33'