jjb: Add windows jobs to lttng-tools
[lttng-ci.git] / jobs / ctf-java.yml
index 1ed00347159ec0a7e580ea6dfa16d89e029162eb..f2575b87548a3a611c8842924c31a19c81a574f7 100644 (file)
@@ -1,5 +1,5 @@
 - defaults:
-    name: ctf-java
+    name: ctf-java-mvn
     description: |
       Nightly build of CTF Java.
 
       - github:
           url: https://github.com/{github_user}/{github_name}
 
+- defaults:
+    name: ctf-java
+    description: |
+      Nightly build of CTF Java.
+
+      <p>Job is managed by Jenkins Job Builder.</p>
+
+    project-type: freestyle
+
+    wrappers:
+      - workspace-cleanup
+      - timestamps
+      - ansicolor
+
+    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
+
+    triggers:
+      - pollscm:
+          cron: "@hourly"
+
+    properties:
+      - build-discarder:
+          num-to-keep: 2
+      - github:
+          url: https://github.com/{github_user}/{github_name}
+
 
 ## Templates
 - job-template:
     name: ctf-java_{version}_build
-    defaults: ctf-java
+    defaults: ctf-java-mvn
 
     publishers:
       - warnings:
           recipients: alex@voxpopuli.im
           matrix-trigger: only-parent
 
+- job-template:
+    name: ctf-java_{version}_coverity
+    defaults: ctf-java
+    node: 'x86-64'
+
+    triggers:
+      - pollscm:
+          cron: "@daily"
+
+    wrappers:
+      - workspace-cleanup
+      - timestamps
+      - ansicolor:
+          colormap: xterm
+      - credentials-binding:
+          - username-password-separated:
+              credential-id: ctf-java_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/ctf-java
+
+    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:
     name: ctf-java
       - master
     jobs:
       - 'ctf-java_{version}_build'
+      - 'ctf-java_{version}_coverity':
+          version: master
This page took 0.02496 seconds and 4 git commands to generate.