Add email notification to lttng-analyses jobs
[lttng-ci.git] / jobs / lttng-scope.yml
index 15845952a291f7259dec64ffe2bf84c68eff058f..500c2a9cbe60cda35fac043d8bc44130faa4c6db 100644 (file)
          type: slave
          name: arch
          values: '{obj:arch}'
-      - axis:
-         type: user-defined
-         name: SWT_GTK3
-         values:
-           - "0"
-           - "1"
 
     wrappers:
       - workspace-cleanup
@@ -72,6 +66,7 @@
           maven-version: "default"
           goals: "-version"
           private-repository: true
+          settings: 'org.jenkinsci.plugins.configfiles.maven.MavenSettingsConfig277b7a2d-b7a6-4ae4-a32d-18c02514e9e4'
       - maven-target:
           maven-version: "default"
           goals: clean install -Dmaven.test.skip=false
           settings: 'org.jenkinsci.plugins.configfiles.maven.MavenSettingsConfig277b7a2d-b7a6-4ae4-a32d-18c02514e9e4'
           properties:
             - maven.test.failure.ignore=true
-            - eclipse.p2.mirrors=false
 
     publishers:
       - archive:
-          artifacts: 'releng/org.lttng.scope.rcp.product/target/repository/**,releng/org.lttng.scope.rcp.product/target/products/*'
+          artifacts: '**/target/*.jar'
           allow-empty: false
           only-if-success: true
       - junit:
           results: '**/target/surefire-reports/*.xml'
+      - warnings:
+          console-log-parsers:
+            - 'Maven'
+          total-thresholds:
+            unstable:
+              total-all: 0
+              total-high: 0
+              total-normal: 0
+              total-low: 0
       - workspace-cleanup
       - email-ext:
           recipients: alex@voxpopuli.im
           settings: 'org.jenkinsci.plugins.configfiles.maven.MavenSettingsConfig277b7a2d-b7a6-4ae4-a32d-18c02514e9e4'
           properties:
             - maven.test.failure.ignore=true
-            - eclipse.p2.mirrors=false
 
     publishers:
       - archive:
-          artifacts: 'releng/org.lttng.scope.rcp.product/target/repository/**,releng/org.lttng.scope.rcp.product/target/products/*'
+          artifacts: '**/target/*.jar'
           allow-empty: false
           only-if-success: true
       - junit:
           results: '**/target/surefire-reports/*.xml'
+      - warnings:
+          console-log-parsers:
+            - 'Maven'
+          total-thresholds:
+            unstable:
+              total-all: 0
+              total-high: 0
+              total-normal: 0
+              total-low: 0
       - workspace-cleanup
       - email-ext:
           recipients: alex@voxpopuli.im
           maven-version: "default"
           goals: "-version"
           private-repository: true
+          settings: 'org.jenkinsci.plugins.configfiles.maven.MavenSettingsConfig277b7a2d-b7a6-4ae4-a32d-18c02514e9e4'
       - maven-target:
           maven-version: "default"
           goals: clean install -Dmaven.test.skip=false
           settings: 'org.jenkinsci.plugins.configfiles.maven.MavenSettingsConfig277b7a2d-b7a6-4ae4-a32d-18c02514e9e4'
           properties:
             - maven.test.failure.ignore=true
-            - eclipse.p2.mirrors=false
 
     publishers:
       - archive:
-          artifacts: 'releng/org.lttng.scope.rcp.product/target/repository/**,releng/org.lttng.scope.rcp.product/target/products/*'
+          artifacts: '**/target/*.jar'
           allow-empty: false
           only-if-success: true
       - junit:
           results: '**/target/surefire-reports/*.xml'
+      - warnings:
+          console-log-parsers:
+            - 'Maven'
+          total-thresholds:
+            unstable:
+              total-all: 0
+              total-high: 0
+              total-normal: 0
+              total-low: 0
       - workspace-cleanup
       - email-ext:
           recipients: alex@voxpopuli.im
 #          channels:
 #            - name: '#lttng'
 
+- job-template:
+    name: lttng-scope_{version}_coverity
+    defaults: lttng-scope
+    node: 'x86-64'
+
+    triggers:
+      - pollscm:
+          cron: "@daily"
+
+    wrappers:
+      - workspace-cleanup
+      - timestamps
+      - ansicolor:
+          colormap: xterm
+      - credentials-binding:
+          - username-password-separated:
+              credential-id: lttng-scope_coverity_token
+              username: COVERITY_SCAN_PROJECT_NAME
+              password: COVERITY_SCAN_TOKEN
+
+    scm:
+      - git:
+          url: git://github.com/{github_user}/{github_name}.git
+          browser: githubweb
+          browser-url: https://github.com/{github_user}/{github_name}
+          branches:
+            - origin/{version}
+          skip-tag: true
+          basedir: src/lttng-scope
+
+    builders:
+      - maven-target:
+          maven-version: "default"
+          goals: "-version"
+          private-repository: true
+          settings: 'org.jenkinsci.plugins.configfiles.maven.MavenSettingsConfig277b7a2d-b7a6-4ae4-a32d-18c02514e9e4'
+      - shell:
+          !include-raw-escape: scripts/common/coverity.sh
+
+    publishers:
+      - workspace-cleanup
+      - archive:
+          artifacts: 'analysis-results.tgz,cov-int/**'
+          allow-empty: false
+
 
 ## Project
 - project:
     jobs:
       - 'lttng-scope_{version}_build':
           arch: !!python/tuple [x86-32, x86-64]
-
       - 'lttng-scope_{version}_winbuild':
           arch: !!python/tuple [win64]
-
       - 'lttng-scope_{version}_macosxbuild':
           arch: !!python/tuple [macosx]
+      - 'lttng-scope_{version}_coverity':
+          version: master
 
This page took 0.02617 seconds and 4 git commands to generate.