X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=jobs%2Flttng-modules.yaml;h=4b5482b159c368179ada0575a9abab163e752b68;hb=f3b60e31709f34824d54a6731b58d5fa87b6c8db;hp=834989d0da2d133ae02f61b25f9ba5c7894ec954;hpb=7b67e7b09c6b994e92d7e4096683bdc5b9df1b84;p=lttng-ci.git diff --git a/jobs/lttng-modules.yaml b/jobs/lttng-modules.yaml index 834989d..4b5482b 100644 --- a/jobs/lttng-modules.yaml +++ b/jobs/lttng-modules.yaml @@ -1,6 +1,76 @@ --- +## Defaults +- defaults: + name: lttng-modules + description: | + The LTTng modules provide Linux kernel tracing capability to the LTTng + 2.0 tracer toolset. + +

Job is managed by Jenkins Job Builder.

+ + project-type: freestyle + + wrappers: + - workspace-cleanup + - timestamps + - ansicolor + + scm: + - git: + url: https://github.com/{github_user}/{github_name}.git + browser: githubweb + browser-url: https://github.com/{github_user}/{github_name} + branches: + - "refs/heads/{mversion}" + shallow-clone: true + fastpoll: true + basedir: src/lttng-modules + wipe-workspace: false + skip-tag: true + + triggers: + - pollscm: + cron: "@hourly" + + properties: + - build-discarder: + num-to-keep: 10 + artifact-num-to-keep: 2 + - github: + url: https://github.com/{github_user}/{github_name} + + publishers: + - workspace-cleanup + - ircbot: <tng-modules_publisher_ircbot_defaults + strategy: statechange-only + message-type: summary + matrix-notifier: only-parent + - 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 + + ## Anchors -- lttng-modules_build_parameters_defaults: <tng-modules_build_parameters_defaults +- _lttng-modules_build_parameters_defaults: <tng-modules_build_parameters_defaults name: 'lttng-modules_build_parameters_defaults' parameters: - string: @@ -32,8 +102,8 @@ default: 'lttng-modules_PARAM_{parambuildtype}' description: 'The parametrized job to use for child builds.' -- lttng-modules_build_parameters_gerrit: <tng-modules_build_parameters_gerrit - name: 'lttng-modules_build_parameters_defaults' +- _lttng-modules_build_parameters_review: <tng-modules_build_parameters_review + name: 'lttng-modules_build_parameters_review' parameters: - string: name: 'maxConcurrentBuild' @@ -64,7 +134,7 @@ default: 'lttng-modules_PARAM_build' description: 'The parametrized job to use for child builds.' -- lttng-modules_build_parameters_ubuntu: <tng-modules_build_parameters_ubuntu +- _lttng-modules_build_parameters_ubuntu: <tng-modules_build_parameters_ubuntu name: 'lttng-modules_build_parameters_ubuntu' parameters: - string: @@ -100,7 +170,7 @@ default: '{uversion}' description: 'The lowest kernel version to build.' -- lttng-modules_build_parameters_rt: <tng-modules_build_parameters_rt +- _lttng-modules_build_parameters_rt: <tng-modules_build_parameters_rt name: 'lttng-modules_build_parameters_rt' parameters: - string: @@ -109,7 +179,7 @@ description: 'The maximum number of concurrent child build to run.' - string: name: 'kverfloor' - default: 'v2.6.36-rt0-rebase' + default: '{kverfloor}' description: 'The lowest kernel version to build.' - string: name: 'kverceil' @@ -132,14 +202,14 @@ default: 'lttng-modules_PARAM_build' description: 'The parametrized job to use for child builds.' -- lttng-modules_build_builders_defaults: <tng-modules_build_builders_defaults +- _lttng-modules_build_builders_defaults: <tng-modules_build_builders_defaults name: 'lttng-modules_build_builders_defaults' builders: - system-groovy: command: !include-raw-escape: scripts/lttng-modules/master.groovy -- lttng-modules_build_rt_builders_defaults: <tng-modules_build_rt_builders_defaults +- _lttng-modules_build_rt_builders_defaults: <tng-modules_build_rt_builders_defaults name: 'lttng-modules_build_rt_builders_defaults' builders: - system-groovy: @@ -147,71 +217,6 @@ !include-raw-escape: scripts/lttng-modules/master-rt.groovy -## Defaults -- defaults: - name: lttng-modules - description: | - The LTTng modules provide Linux kernel tracing capability to the LTTng - 2.0 tracer toolset. - -

Job is managed by Jenkins Job Builder.

- - project-type: freestyle - - wrappers: - - workspace-cleanup - - timestamps - - ansicolor - - scm: - - git: - url: https://github.com/{github_user}/{github_name}.git - browser: githubweb - browser-url: https://github.com/{github_user}/{github_name} - branches: - - "refs/heads/{mversion}" - shallow-clone: true - fastpoll: true - basedir: src/lttng-modules - wipe-workspace: false - skip-tag: true - - triggers: - - pollscm: - cron: "@hourly" - - properties: - - build-discarder: - num-to-keep: 2 - - github: - url: https://github.com/{github_user}/{github_name} - - publishers: - - workspace-cleanup - - 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 - - ## Templates - job-template: name: lttng-modules_ALL_trigger-vanilla @@ -307,7 +312,7 @@ <<: *lttng-modules_build_builders_defaults - job-template: - name: dev_gerrit_lttng-modules_build + name: dev_review_lttng-modules_{mversion}_build defaults: lttng-modules concurrent: true @@ -332,8 +337,8 @@ - project-compare-type: 'PLAIN' project-pattern: 'lttng-modules' branches: - - branch-compare-type: 'ANT' - branch-pattern: '**' + - branch-compare-type: 'PLAIN' + branch-pattern: '{mversion}' properties: - build-discarder: @@ -343,7 +348,7 @@ categories: - 'gerrit-build' - <<: *lttng-modules_build_parameters_gerrit + <<: *lttng-modules_build_parameters_review <<: *lttng-modules_build_builders_defaults publishers: @@ -439,8 +444,8 @@ axes: - axis: type: slave - name: arch - values: '{obj:arch}' + name: platforms + values: '{obj:platforms}' properties: - build-discarder: @@ -468,7 +473,7 @@ scm: [] - triggers: + triggers: [] builders: - shell: @@ -491,8 +496,8 @@ axes: - axis: type: slave - name: arch - values: '{obj:arch}' + name: platforms + values: '{obj:platforms}' properties: - build-discarder: @@ -520,7 +525,7 @@ scm: [] - triggers: + triggers: [] builders: - shell: @@ -530,6 +535,62 @@ - workspace-cleanup +- job-template: + name: dev_mjeanson_lttng-modules_PARAM_crossbuild + defaults: lttng-modules + description: | + This is a parametrized job used by 'master' jobs to build any combinations + of lttng-modules and linux kernel versions. + +

Job is managed by Jenkins Job Builder.

+ + project-type: matrix + node: 'master' # Applies only to matrix flyweight task + axes: + - axis: + type: user-defined + name: cross_arch + values: '{obj:cross_arch}' + - axis: + type: slave + name: platforms + values: '{obj:platforms}' + + properties: + - build-discarder: + days-to-keep: 2 + + parameters: + - string: + name: 'mversion' + default: 'master' + description: 'The lttng-modules branch to build.' + - string: + name: 'mgitrepo' + default: 'git://git-mirror.internal.efficios.com/lttng/lttng-modules.git' + description: 'The lttng-modules git repository url.' + - string: + name: 'ktag' + default: '' + description: 'The linux kernel git tag to build against.' + - string: + name: 'kgitrepo' + default: 'git://git-mirror.internal.efficios.com/git/linux-all.git' + description: 'The linux kernel git repository url.' + + concurrent: true + + scm: [] + + triggers: [] + + builders: + - shell: + !include-raw-escape: scripts/lttng-modules/param-build.sh + + publishers: + - workspace-cleanup + - job-template: name: lttng-modules_PARAM_crossbuild defaults: lttng-modules @@ -573,7 +634,7 @@ scm: [] - triggers: + triggers: [] builders: - shell: @@ -616,28 +677,9 @@ - archive: artifacts: 'analysis-results.tgz,cov-int/**' allow-empty: false + - ircbot: *lttng-modules_publisher_ircbot_defaults - workspace-cleanup -- job-template: - name: lttng-modules_{mversion}_cppcheck - defaults: lttng-modules - - triggers: - - pollscm: - cron: "@daily" - - builders: - - shell: | - rm -f cppcheck-result.xml - cppcheck --enable=all --xml --xml-version=2 $WORKSPACE/src/lttng-modules 2> cppcheck-result.xml - - publishers: - - archive: - artifacts: 'cppcheck-result.xml' - allow-empty: false - - cppcheck: - pattern: 'cppcheck-result.xml' - ## Project - project: @@ -654,17 +696,32 @@ # Vanilla normal builds - 'lttng-modules_{mversion}_{buildtype}-vanilla': mversion: - - stable-2.13 - master buildtype: build parambuildtype: build + kverfloor: v4.4 + kverceil: '' + kverfilter: stable-head + - 'lttng-modules_{mversion}_fullbuild-vanilla': + mversion: + - master + buildtype: build + parambuildtype: build + kverfloor: v4.4 + kverceil: '' + kverfilter: none + + - 'lttng-modules_{mversion}_{buildtype}-vanilla': + mversion: + - stable-2.13 + buildtype: build + parambuildtype: build kverfloor: v3.0 kverceil: '' kverfilter: stable-head - 'lttng-modules_{mversion}_fullbuild-vanilla': mversion: - stable-2.13 - - master buildtype: build parambuildtype: build kverfloor: v3.0 @@ -691,6 +748,7 @@ # RT normal builds - 'lttng-modules_{mversion}_build-rt': mversion: master + kverfloor: v4.4.0-rt1-rebase kverceil: '' kverfilter: stable-head @@ -710,10 +768,18 @@ # Vanilla crossbuilds - 'lttng-modules_{mversion}_{buildtype}-vanilla': mversion: - - stable-2.13 - master buildtype: crossbuild parambuildtype: crossbuild + kverfloor: v4.4 + kverceil: '' + kverfilter: stable-head + + - 'lttng-modules_{mversion}_{buildtype}-vanilla': + mversion: + - stable-2.13 + buildtype: crossbuild + parambuildtype: crossbuild kverfloor: v3.18 kverceil: '' kverfilter: stable-head @@ -740,23 +806,33 @@ # Parametrized kernel and modules build jobs - 'lttng-modules_PARAM_build': - arch: !!python/tuple [amd64] + platforms: !!python/tuple [amd64] - 'lttng-modules_PARAM_crossbuild': cross_arch: !!python/tuple [armhf, arm64, powerpc, ppc64el] # Misc jobs - 'lttng-modules_ALL_trigger-vanilla' - - 'lttng-modules_{mversion}_cppcheck' - 'lttng-modules_{mversion}_coverity': mversion: master - project: - name: lttng-modules-gerrit + name: lttng-modules-review jobs: - - 'dev_gerrit_lttng-modules_build': - kverfloor: v5.5 - kverceil: v5.6 - kverfilter: stable-head + - 'dev_review_lttng-modules_{mversion}_build': + mversion: master + kverfloor: v4.4 + kverceil: '' + kverfilter: lts-head + - 'dev_review_lttng-modules_{mversion}_build': + mversion: stable-2.13 + kverfloor: v3.0 + kverceil: '' + kverfilter: lts-head + - 'dev_review_lttng-modules_{mversion}_build': + mversion: stable-2.12 + kverfloor: v3.0 + kverceil: v5.18 + kverfilter: lts-head - project: name: lttng-modules-dev-mjeanson @@ -765,7 +841,10 @@ email_to: '' jobs: - 'dev_mjeanson_lttng-modules_PARAM_build': - arch: !!python/tuple [amd64] + platforms: !!python/tuple [deb12-amd64] + - 'dev_mjeanson_lttng-modules_PARAM_crossbuild': + platforms: !!python/tuple [deb12-amd64] + cross_arch: !!python/tuple [armhf, arm64, powerpc, ppc64el] - 'dev_mjeanson_lttng-modules_{mversion}_{buildtype}-vanilla': mversion: - master