X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=jobs%2Flttng-analyses.yaml;h=d49053043ae0df8ee23a7759f2c1f13e832604be;hb=0c50633c4c844534e40eb4f990e844264a4dc552;hp=bf9511bf5d1940bafd385e6e31911980fab70484;hpb=ead62c96a4d0ecd27c8573eb7ca7e06b9f66e533;p=lttng-ci.git diff --git a/jobs/lttng-analyses.yaml b/jobs/lttng-analyses.yaml index bf9511b..d490530 100644 --- a/jobs/lttng-analyses.yaml +++ b/jobs/lttng-analyses.yaml @@ -7,40 +7,105 @@ project-type: freestyle - logrotate: - daysToKeep: -1 - numToKeep: 2 - artifactDaysToKeep: -1 - artifactNumToKeep: -1 - wrappers: - - workspace-cleanup - - timestamps - ansicolor: colormap: xterm + - timeout: + timeout: 10 + fail: true + type: no-activity + - timestamps + - workspace-cleanup + - 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: 10 + artifact-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}_linuxbuild + defaults: lttng-analyses + + project-type: matrix + node: 'master' # Applies only to matrix flyweight task + axes: + - axis: + type: slave + name: platform + values: '{obj:platforms}' + - axis: + type: user-defined + name: babeltrace_version + values: '{obj:babeltrace_versions}' + + builders: + - copyartifact: + project: dev_upstream_babeltrace_${{babeltrace_version}}_linuxbuild/platform=${{platform}},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: + - workspace-cleanup: <tng-analyses_publisher_workspace-cleanup_defaults + clean-if: + - failure: false + - ircbot: <tng-analyses_publisher_ircbot_defaults + strategy: statechange-only + message-type: summary + matrix-notifier: only-parent + - email-ext: <tng-analyses_publisher_email_ext_defaults + 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: 'jammy-amd64' triggers: - pollscm: @@ -48,39 +113,34 @@ builders: - copyartifact: - project: babeltrace-master/arch=x86-64,build=std,conf=python_bindings + project: dev_upstream_babeltrace_{babeltrace_version}_linuxbuild/platform=jammy-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 + artifacts: 'pylint.out' + - workspace-cleanup: *lttng-analyses_publisher_workspace-cleanup_defaults + - ircbot: *lttng-analyses_publisher_ircbot_defaults + - email-ext: *lttng-analyses_publisher_email_ext_defaults ## 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}_linuxbuild': + platforms: !!python/tuple [jammy-amd64] + babeltrace_versions: !!python/tuple [stable-1.5] + - 'lttng-analyses_{version}_pylint': + babeltrace_version: stable-1.5