Port more macros over from ODL 31/31/1
authorAndrew Grimberg <[email protected]>
Wed, 9 Dec 2015 17:06:48 +0000 (09:06 -0800)
committerAndrew Grimberg <[email protected]>
Wed, 9 Dec 2015 17:06:48 +0000 (09:06 -0800)
Bring over some more macros from ODL.

Publishers:
* archive-artifacts
* email-notification (currently set to a bad address on purpose)
* jacoco-report

Builders:
* provide-maven-settings

Change-Id: I60684dbcdf87b6104f7763e7f74c48174a2355e8
Signed-off-by: Andrew Grimberg <[email protected]>
jjb/global-macros.yaml

index 6abec56..b1e0283 100644 (file)
                     - branch-compare-type: 'ANT'
                       branch-pattern: '**/{branch}'
 
+# Publishers
+- publisher:
+    name: archive-artifacts
+    publishers:
+        - archive:
+            articacts: '{artifacts}'
+            allow-empty: true
+            fingerprint: true
+            latest-only: true
+
+- publisher:
+    name: email-notification
+    publishers:
+        - email-ext:
+            recipients: '[email protected]'
+            reply-to:
+            content-type: default
+            subject: '{email-prefix} $PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS!'
+            body: |
+                $PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS:
+
+                Check console output at $BUILD_URL to view the results.
+            unstable: true
+            fixed: true
+            send-to:
+                - developers
+                - recipients
+
+- publisher:
+    name: jacoco-report
+    publishers:
+        - jacoco:
+            exec-pattern: '**/**.exec'
+            class-pattern: '**/classes'
+            source-pattern: '**/src/main/java'
+            exclusion-pattern: '**/gen**,**/generated-sources/**,**/yang-gen**,**/pax/**'
+            status-update: true
+            targets:
+                - branch:
+                    healthy: 10
+                    unhealthy: 20
+                - method:
+                    healthy: 50
+                    unhealthy: 40
+
 ###### BUILDERS
 - builder:
     name: ci-management-check-unicode
         - shell: |
             $WORKSPACE/scripts/check-unicode.sh jjb/
 
+- builder:
+    name: provide-maven-settings
+    builders:
+        - config-file-provider:
+            files:
+                - file-id: '{global-settings}'
+                  variable: 'GLOBAL_SETTINGS_FILE'
+                - file-id: '{settings-file}'
+                  variable: 'SETTINGS_FILE'