Explicitly specify Gerrit server to use
[releng/builder.git] / jjb / releng-macros.yaml
index f7197adfa6f54b7c1502f0cc71c327a458fe9ad6..2ea9ab8d295ef0c6aec890df91a69b6a555fa8ba 100644 (file)
@@ -52,6 +52,7 @@
     name: gerrit-trigger-patch-submitted
     triggers:
         - gerrit:
+            server-name: 'OpenDaylight'
             trigger-on:
                 - patchset-created-event:
                     exclude-drafts: 'false'
@@ -71,6 +72,7 @@
     name: gerrit-trigger-patch-merged
     triggers:
         - gerrit:
+            server-name: 'OpenDaylight'
             trigger-on:
                 - change-merged-event
                 - comment-added-contains-event:
                   - branch-compare-type: 'ANT'
                     branch-pattern: '**/{branch}'
 
+- publisher:
+    name: archive-artifacts
+    publishers:
+        - archive:
+            artifacts: '{artifacts}'
+            allow-empty: true
+            fingerprint: true
+            latest-only: true
+
 - publisher:
     name: email-notification
     publishers:
                 exec-pattern: "**/**.exec"
                 class-pattern: "**/classes"
                 source-pattern: "**/src/main/java"
+                exclusion-pattern: "**/gen/**,**/generated-sources/**,**/yang-gen**"
                 status-update: true
                 targets:
                   - branch:
                   - method:
                       healthy: 50
                       unhealthy: 40
+
+- builder:
+    name: wipe-org-opendaylight-repo
+    builders:
+        - shell: 'if [ -d /tmp/r/org/opendaylight ]; then rm -rf /tmp/r/org/opendaylight; fi'
+
+- builder:
+    name: jacoco-nojava-workaround
+    builders:
+        - shell: 'mkdir -p $WORKSPACE/target/classes'