+- job-template:
+ name: dev_review_lttng-ust-java-tests_{version}_{buildtype}
+ defaults: lttng-ust
+ description: |
+ Review tests for LTTng-UST's Java agent.
+ <p>Job is managed by Jenkins Job Builder.</p>
+ project-type: matrix
+ axes:
+ - axis:
+ <<: *lttng-ust_matrix_axis_platform
+ concurrent: true
+ scm:
+ - git:
+ url: https://review.lttng.org/lttng-ust-java-tests
+ refspec: 'refs/changes/*:refs/changes/*'
+ branches:
+ - '$GERRIT_REFSPEC'
+ basedir: 'src/lttng-ust-java-tests'
+ skip-tag: true
+ triggers:
+ - gerrit:
+ <<: *lttng-ust_trigger_gerrit_defaults
+ projects:
+ - project-compare-type: 'PLAIN'
+ project-pattern: 'lttng-ust-java-tests'
+ branches:
+ - branch-compare-type: 'PLAIN'
+ branch-pattern: '{version}'
+ builders:
+ - copyartifact:
+ <<: *lttng-ust_steps_copyartifact_defaults
+ project: 'liburcu_{liburcu_versions[0]}_{buildtype}/platform=${{platform}},conf=std,build=std'
+ - copyartifact:
+ <<: *lttng-ust_steps_copyartifact_defaults
+ project: 'lttng-ust_{lttngust_versions[0]}_{buildtype}/liburcu_version={liburcu_versions[0]},platform=${{platform}},conf=agents,build=std'
+ - copyartifact:
+ <<: *lttng-ust_steps_copyartifact_defaults
+ project: 'lttng-tools_{lttngtools_versions[0]}_{buildtype}/babeltrace_version={babeltrace_versions[0]},liburcu_version={liburcu_versions[0]},platform=${{platform}},conf=agents,build=std'
+ - copyartifact:
+ <<: *lttng-ust_steps_copyartifact_defaults
+ project: 'babeltrace_{babeltrace_versions[0]}_{buildtype}/platform=${{platform}},conf=std,build=std'
+ - shell:
+ !include-raw-escape scripts/lttng-ust/lttng-ust-java-tests.sh
+ properties:
+ - inject:
+ properties-content: |
+ PROJECT_NAME=lttng-ust-java-tests
+ - build-discarder:
+ days-to-keep: 1
+ - throttle:
+ option: 'category'
+ categories:
+ - 'gerrit-{buildtype}'
+ publishers:
+ - archive:
+ artifacts: 'log/lttng-sessiond.log'
+ allow-empty: false
+ - junit:
+ results: 'src/lttng-ust-java-tests/**/target/failsafe-reports/*.xml'
+ - workspace-cleanup