+ - email-ext: <tng-tools_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
+
+- _lttng-tools_publishers_rootbuild: <tng-tools_publishers_rootbuild
+ name: 'lttng-tools_publishers_rootbuild'
+ publishers:
+ - postbuildscript: *lttng-tools_publisher_postbuildscript_wait_10_seconds_on_abort
+ - postbuildscript: *lttng-tools_publisher_postbuildscript_collect_tap_on_failure
+ - postbuildscript: *lttng-tools_publisher_postbuildscript_clean_processes_coredumps
+ - tap: *lttng-tools_publisher_tap_defaults
+ - raw: *lttng-tools_publisher_warnings-ng_defaults
+ - archive: *lttng-tools_publisher_archive_defaults
+ - workspace-cleanup: *lttng-tools_publisher_workspace-cleanup_defaults
+ - ircbot: *lttng-tools_publisher_ircbot_defaults
+ - email-ext: *lttng-tools_publisher_email-ext_defaults
+
+- _lttng-tools_publishers_win: <tng-tools_publishers_win
+ name: 'lttng-tools_publishers_win'
+ publishers:
+ - tap: *lttng-tools_publisher_tap_defaults
+ - raw: *lttng-tools_publisher_warnings-ng_defaults
+ - archive: *lttng-tools_publisher_archive_defaults
+ - workspace-cleanup: *lttng-tools_publisher_workspace-cleanup_defaults
+ - raw: *lttng-tools_publisher_proc-cleaner_defaults
+ - ircbot: *lttng-tools_publisher_ircbot_defaults
+ - email-ext: *lttng-tools_publisher_email-ext_defaults
+
+
+## Templates
+- job-template:
+ name: '{job_prefix}lttng-tools_{version}_{buildtype}'
+ defaults: lttng-tools
+
+ <<: *lttng-tools_matrix_axes_defaults
+ <<: *lttng-tools_builders_defaults
+ <<: *lttng-tools_publishers_defaults
+
+ triggers:
+ - pollscm: *lttng-tools_trigger_pollscm_default
+ - reverse:
+ jobs: '{ust_job_prefix}lttng-ust_{version}_{buildtype}'
+ result: 'success'
+
+- job-template:
+ name: 'dev_{user}_lttng-tools_{version}_{buildtype}'
+ defaults: lttng-tools
+
+ <<: *lttng-tools_matrix_axes_defaults
+ <<: *lttng-tools_builders_defaults
+ <<: *lttng-tools_publishers_defaults
+
+- job-template:
+ name: 'dev_{user}_lttng-tools_{version}_macosbuild'
+ defaults: lttng-tools
+
+ wrappers:
+ - ansicolor: *lttng-tools_wrapper_ansicolor_defaults
+ - timeout: *lttng-tools_wrapper_timeout_defaults
+ - timestamps
+ - workspace-cleanup
+
+ <<: *lttng-tools_matrix_axes_defaults
+ <<: *lttng-tools_builders_defaults
+ <<: *lttng-tools_publishers_defaults
+
+- job-template:
+ name: '{job_prefix}lttng-tools_{version}_long_regression'
+ defaults: lttng-tools
+
+ properties:
+ - inject:
+ properties-content: |
+ PROJECT_NAME=lttng-tools
+ LTTNG_TOOLS_RUN_TESTS_LONG_REGRESSION=yes
+ - build-discarder: *lttng-tools_property_build-discarder_defaults
+ - github: *lttng-tools_property_github_defaults
+
+ wrappers:
+ - ansicolor: *lttng-tools_wrapper_ansicolor_defaults
+ - timeout:
+ <<: *lttng-tools_wrapper_timeout_defaults
+ timeout: 45
+ - timestamps
+ - workspace-cleanup
+ - raw: *lttng-tools_wrapper_proc-cleaner_defaults
+
+ <<: *lttng-tools_matrix_axes_defaults
+ <<: *lttng-tools_builders_defaults
+ <<: *lttng-tools_publishers_defaults
+
+ triggers:
+ - pollscm: *lttng-tools_trigger_pollscm_default
+ - reverse:
+ jobs: '{ust_job_prefix}lttng-ust_{version}_{buildtype}'
+ result: 'success'
+
+- job-template:
+ name: '{job_prefix}lttng-tools_{version}_rootbuild'
+ defaults: lttng-tools
+
+ scm:
+ - git: *lttng-tools_scm_git_default
+
+ wrappers:
+ - ansicolor: *lttng-tools_wrapper_ansicolor_defaults
+ - timeout:
+ <<: *lttng-tools_wrapper_timeout_defaults
+ timeout: 10
+ - timestamps
+
+ <<: *lttng-tools_matrix_axes_rootbuild
+ <<: *lttng-tools_builders_defaults
+ <<: *lttng-tools_publishers_rootbuild
+
+ triggers:
+ - pollscm: *lttng-tools_trigger_pollscm_default
+ - reverse:
+ jobs: '{ust_job_prefix}lttng-ust_{version}_build'
+ result: 'success'
+
+- job-template:
+ name: '{job_prefix}lttng-tools_{version}_rootbuild_i386'
+ defaults: lttng-tools
+
+ scm:
+ - git: *lttng-tools_scm_git_default
+
+ wrappers:
+ - ansicolor: *lttng-tools_wrapper_ansicolor_defaults
+ - timeout:
+ <<: *lttng-tools_wrapper_timeout_defaults
+ timeout: 10
+ - timestamps
+
+ <<: *lttng-tools_matrix_axes_rootbuild
+ <<: *lttng-tools_builders_defaults
+ <<: *lttng-tools_publishers_rootbuild
+
+ triggers:
+ - pollscm: *lttng-tools_trigger_pollscm_default
+ - reverse:
+ jobs: '{ust_job_prefix}lttng-ust_{version}_build'
+ result: 'success'
+
+- job-template:
+ name: '{job_prefix}lttng-tools_{version}_macosbuild'
+ defaults: lttng-tools
+
+ wrappers:
+ - ansicolor: *lttng-tools_wrapper_ansicolor_defaults
+ - timeout: *lttng-tools_wrapper_timeout_defaults
+ - timestamps
+ - workspace-cleanup
+
+ <<: *lttng-tools_matrix_axes_defaults
+ <<: *lttng-tools_builders_defaults
+ <<: *lttng-tools_publishers_defaults
+
+- job-template:
+ name: lttng-tools_{version}_winbuild
+ defaults: lttng-tools
+
+ <<: *lttng-tools_matrix_axes_defaults
+ <<: *lttng-tools_builders_win
+ <<: *lttng-tools_publishers_win
+
+- job-template:
+ name: dev_review_lttng-tools_{version}_{buildtype}
+ defaults: lttng-tools
+ concurrent: true
+
+ scm:
+ - git: <tng-tools_scm_git_review
+ url: https://review.lttng.org/lttng-tools
+ refspec: 'refs/changes/*:refs/changes/*'
+ branches:
+ - '$GERRIT_REFSPEC'
+ basedir: src/lttng-tools
+ skip-tag: true
+
+ triggers:
+ - gerrit: <tng-tools_trigger_gerrit_default
+ trigger-on:
+ - comment-added-event:
+ approval-category: 'CI-Build'
+ approval-value: 1
+ projects:
+ - project-compare-type: 'PLAIN'
+ project-pattern: 'lttng-tools'
+ branches:
+ - branch-compare-type: 'PLAIN'
+ branch-pattern: '{version}'
+
+ properties:
+ - inject: *lttng-tools_property_inject_defaults
+ - build-discarder:
+ days-to-keep: 1
+ - throttle:
+ option: 'category'
+ categories:
+ - 'gerrit-{buildtype}'
+
+ <<: *lttng-tools_matrix_axes_defaults
+ <<: *lttng-tools_builders_review
+
+ publishers:
+ # On build abort (timeout), wait 10 seconds before running the other post
+ # build scripts, this will allow the processes to terminate and make the
+ # build log more legible.
+ - postbuildscript: *lttng-tools_publisher_postbuildscript_wait_10_seconds_on_abort
+
+ # On build failure, try to get partial tap results if any exists
+ - postbuildscript: *lttng-tools_publisher_postbuildscript_collect_tap_on_failure
+
+ # If there are leftover lttng processes or core files present, kill the
+ # processes, collect the core files, delete them and mark the build
+ # unstable.
+ - postbuildscript: *lttng-tools_publisher_postbuildscript_clean_processes_coredumps
+
+ - tap: *lttng-tools_publisher_tap_defaults
+ - raw: *lttng-tools_publisher_warnings-ng_defaults
+ - junit: *lttng-tools_publisher_junit_defaults
+ - archive: *lttng-tools_publisher_archive_defaults
+ - workspace-cleanup: *lttng-tools_publisher_workspace-cleanup_defaults
+ - raw: *lttng-tools_publisher_proc-cleaner_defaults