| 1 | - defaults: |
| 2 | name: lttng-analyses |
| 3 | description: | |
| 4 | LTTng analyses python scripts. |
| 5 | |
| 6 | <p>Job is managed by Jenkins Job Builder.</p> |
| 7 | |
| 8 | project-type: freestyle |
| 9 | |
| 10 | wrappers: |
| 11 | - ansicolor: |
| 12 | colormap: xterm |
| 13 | - timeout: |
| 14 | timeout: 10 |
| 15 | fail: true |
| 16 | type: no-activity |
| 17 | - timestamps |
| 18 | - workspace-cleanup |
| 19 | - credentials-binding: |
| 20 | - username-password-separated: |
| 21 | credential-id: lttng-analyses_codecov_token |
| 22 | username: CODECOV_PROJECT_NAME |
| 23 | password: CODECOV_TOKEN |
| 24 | |
| 25 | scm: |
| 26 | - git: |
| 27 | url: https://github.com/{github_user}/{github_name}.git |
| 28 | browser: githubweb |
| 29 | browser-url: https://github.com/{github_user}/{github_name} |
| 30 | branches: |
| 31 | - origin/{version} |
| 32 | basedir: src/lttng-analyses |
| 33 | skip-tag: true |
| 34 | |
| 35 | triggers: |
| 36 | - pollscm: |
| 37 | cron: "@hourly" |
| 38 | |
| 39 | properties: |
| 40 | - build-discarder: |
| 41 | num-to-keep: 10 |
| 42 | artifact-num-to-keep: 2 |
| 43 | - github: |
| 44 | url: https://github.com/{github_user}/{github_name} |
| 45 | |
| 46 | |
| 47 | ## Templates |
| 48 | - job-template: |
| 49 | name: lttng-analyses_{version}_linuxbuild |
| 50 | defaults: lttng-analyses |
| 51 | |
| 52 | project-type: matrix |
| 53 | node: 'master' # Applies only to matrix flyweight task |
| 54 | axes: |
| 55 | - axis: |
| 56 | type: slave |
| 57 | name: platform |
| 58 | values: '{obj:platforms}' |
| 59 | - axis: |
| 60 | type: user-defined |
| 61 | name: babeltrace_version |
| 62 | values: '{obj:babeltrace_versions}' |
| 63 | |
| 64 | builders: |
| 65 | - copyartifact: |
| 66 | project: dev_upstream_babeltrace_${{babeltrace_version}}_linuxbuild/platform=${{platform}},build=std,conf=python-bindings |
| 67 | which-build: last-successful |
| 68 | stable: false |
| 69 | filter: 'build/**' |
| 70 | target: 'deps/babeltrace' |
| 71 | - shell: |
| 72 | !include-raw-escape: scripts/lttng-analyses/build.sh |
| 73 | |
| 74 | publishers: |
| 75 | - workspace-cleanup: <tng-analyses_publisher_workspace-cleanup_defaults |
| 76 | clean-if: |
| 77 | - failure: false |
| 78 | - email-ext: <tng-analyses_publisher_email_ext_defaults |
| 79 | recipients: '{obj:email_to}' |
| 80 | reply-to: ci-notification@lists.lttng.org |
| 81 | always: false |
| 82 | unstable: false |
| 83 | first-failure: true |
| 84 | first-unstable: true |
| 85 | not-built: false |
| 86 | aborted: false |
| 87 | regression: false |
| 88 | failure: false |
| 89 | second-failure: false |
| 90 | improvement: false |
| 91 | still-failing: false |
| 92 | success: false |
| 93 | fixed: false |
| 94 | fixed-unhealthy: true |
| 95 | still-unstable: false |
| 96 | pre-build: false |
| 97 | matrix-trigger: only-parent |
| 98 | send-to: |
| 99 | - recipients |
| 100 | |
| 101 | - job-template: |
| 102 | name: lttng-analyses_{version}_pylint |
| 103 | defaults: lttng-analyses |
| 104 | node: 'jammy-amd64' |
| 105 | |
| 106 | triggers: |
| 107 | - pollscm: |
| 108 | cron: "@daily" |
| 109 | |
| 110 | builders: |
| 111 | - copyartifact: |
| 112 | project: dev_upstream_babeltrace_{babeltrace_version}_linuxbuild/platform=jammy-amd64,build=std,conf=python-bindings |
| 113 | which-build: last-successful |
| 114 | stable: false |
| 115 | filter: 'build/**' |
| 116 | target: 'deps/babeltrace' |
| 117 | - shell: |
| 118 | !include-raw-escape: scripts/lttng-analyses/pylint.sh |
| 119 | |
| 120 | publishers: |
| 121 | - archive: |
| 122 | artifacts: 'pylint.out' |
| 123 | - workspace-cleanup: *lttng-analyses_publisher_workspace-cleanup_defaults |
| 124 | - email-ext: *lttng-analyses_publisher_email_ext_defaults |
| 125 | |
| 126 | |
| 127 | ## Project |
| 128 | - project: |
| 129 | name: lttng-analyses |
| 130 | github_user: lttng |
| 131 | github_name: lttng-analyses |
| 132 | email_to: 'ci-notification@lists.lttng.org' |
| 133 | version: |
| 134 | - master |
| 135 | jobs: |
| 136 | - 'lttng-analyses_{version}_linuxbuild': |
| 137 | platforms: !!python/tuple [jammy-amd64] |
| 138 | babeltrace_versions: !!python/tuple [stable-1.5] |
| 139 | - 'lttng-analyses_{version}_pylint': |
| 140 | babeltrace_version: stable-1.5 |
| 141 | |