jjb: lttng-ust: move unsupported branches to 'dev_' namespace
[lttng-ci.git] / jobs / lttng-analyses.yaml
index eff7b6980634429b2405785566fb06ca36666284..53c3d2fec5b10f0c28efbc8c54ee57558f9b3a4d 100644 (file)
@@ -7,40 +7,96 @@
 
     project-type: freestyle
 
-    logrotate:
-        daysToKeep: -1
-        numToKeep: 2
-        artifactDaysToKeep: -1
-        artifactNumToKeep: -1
-
     wrappers:
       - workspace-cleanup
       - timestamps
       - ansicolor:
           colormap: xterm
+      - credentials-binding:
+          - username-password-separated:
+              credential-id: lttng-analyses_codecov_token
+              username: CODECOV_PROJECT_NAME
+              password: CODECOV_TOKEN
 
     scm:
       - git:
-          url: git://github.com/lttng/lttng-analyses.git
+          url: https://github.com/{github_user}/{github_name}.git
           browser: githubweb
-          browser-url: https://github.com/lttng/lttng-analyses
+          browser-url: https://github.com/{github_user}/{github_name}
           branches:
             - origin/{version}
+          basedir: src/lttng-analyses
+          skip-tag: true
 
     triggers:
       - pollscm:
           cron: "@hourly"
 
     properties:
+      - build-discarder:
+          num-to-keep: 2
       - github:
-          url: https://github.com/lttng/lttng-analyses
+          url: https://github.com/{github_user}/{github_name}
 
 
 ## Templates
+- job-template:
+    name: lttng-analyses_{version}_build
+    defaults: lttng-analyses
+
+    project-type: matrix
+    node: 'master' # Applies only to matrix flyweight task
+    axes:
+      - axis:
+         type: slave
+         name: arch
+         values: '{obj:arch}'
+      - axis:
+         type: user-defined
+         name: babeltrace_version
+         values: '{obj:babeltrace_version}'
+
+    builders:
+      - copyartifact:
+          project: babeltrace_${{babeltrace_version}}_build/arch=${{arch}},build=std,conf=python-bindings
+          which-build: last-successful
+          stable: false
+          filter: 'build/**'
+          target: 'deps/babeltrace'
+      - shell:
+         !include-raw-escape: scripts/lttng-analyses/build.sh
+
+    publishers:
+#      - archive:
+#          artifacts: 'build/**'
+#          allow-empty: false
+       - email-ext:
+          recipients: '{obj:email_to}'
+          reply-to: ci-notification@lists.lttng.org
+          always: false
+          unstable: false
+          first-failure: true
+          first-unstable: true
+          not-built: false
+          aborted: false
+          regression: false
+          failure: false
+          second-failure: false
+          improvement: false
+          still-failing: false
+          success: false
+          fixed: false
+          fixed-unhealthy: true
+          still-unstable: false
+          pre-build: false
+          matrix-trigger: only-parent
+          send-to:
+            - recipients
+
 - job-template:
     name: lttng-analyses_{version}_pylint
     defaults: lttng-analyses
-    node: 'x86-64'
+    node: 'amd64'
 
     triggers:
       - pollscm:
 
     builders:
        - copyartifact:
-           project: babeltrace-master/arch=x86-64,build=std,conf=python-bindings
+           project: babeltrace_{babeltrace_version}_build/arch=amd64,build=std,conf=python-bindings
            which-build: last-successful
-           stable: true
+           stable: false
            filter: 'build/**'
            target: 'deps/babeltrace'
        - shell:
-          !include-raw-escape scripts/lttng-analyses/pylint.sh
+          !include-raw-escape: scripts/lttng-analyses/pylint.sh
 
     publishers:
       - archive:
           artifacts: 'pep8.out,pylint.out'
-      - violations:
-          pep8:
-            pattern: pep8.out
-            min: 10
-            max: 999
-            unstable: 999
-          pylint:
-            pattern: pylint.out
-            min: 10
-            max: 999
-            unstable: 999
-      - email:
-          recipients: 'ci-notification@lists.lttng.org'
-          notify-every-unstable-build: true
-          send-to-individuals: false
-
+      - email-ext:
+          recipients: '{obj:email_to}'
+          reply-to: ci-notification@lists.lttng.org
+          always: false
+          unstable: false
+          first-failure: true
+          first-unstable: true
+          not-built: false
+          aborted: false
+          regression: false
+          failure: false
+          second-failure: false
+          improvement: false
+          still-failing: false
+          success: false
+          fixed: false
+          fixed-unhealthy: true
+          still-unstable: false
+          pre-build: false
+          matrix-trigger: only-parent
+          send-to:
+            - recipients
 
 ## Project
 - project:
     name: lttng-analyses
+    github_user: lttng
+    github_name: lttng-analyses
+    email_to: 'ci-notification@lists.lttng.org'
     version:
       - master
     jobs:
-      - 'lttng-analyses_{version}_pylint'
+      - 'lttng-analyses_{version}_build':
+          arch: !!python/tuple [amd64]
+          babeltrace_version: !!python/tuple [stable-1.5]
+      - 'lttng-analyses_{version}_pylint':
+          babeltrace_version: stable-1.5
 
This page took 0.025271 seconds and 4 git commands to generate.