!include-raw-escape: scripts/lttng-tools/gerrit-depends-on.sh
- inject:
properties-file: gerrit_custom_dependencies.properties
- - copyartifact:
- project: '{bt_job_prefix}babeltrace_${{babeltrace_version}}_{buildtype}/arch=${{arch}},conf=std,build=std'
- which-build: last-successful
- stable: false
- filter: 'build/**'
- target: 'deps'
- do-not-fingerprint: true
- conditional-step:
condition-kind: and
on-evaluation-failure: run
filter: 'build/**'
target: 'deps'
do-not-fingerprint: true
+ - conditional-step:
+ condition-kind: shell
+ on-evaluation-failure: run
+ condition-command: 'test -z "$GERRIT_DEP_BABELTRACE"'
+ steps:
+ - copyartifact:
+ project: '{bt_job_prefix}babeltrace_${{babeltrace_version}}_{buildtype}/arch=${{arch}},conf=std,build=std'
+ which-build: last-successful
+ stable: false
+ filter: 'build/**'
+ target: 'deps'
+ do-not-fingerprint: true
- shell:
!include-raw-escape: scripts/lttng-tools/clean_processes_coredump.sh
- conditional-step:
- scripts/common/override-build-std.sh
- scripts/common/print.sh
- scripts/liburcu/build.sh
+ - conditional-step:
+ condition-kind: shell
+ condition-command: 'test ! -z "$GERRIT_DEP_BABELTRACE"'
+ steps:
+ - shell:
+ !include-raw-escape:
+ - scripts/common/override-build-std.sh
+ - scripts/common/print.sh
+ - scripts/babeltrace/build.sh
- shell:
!include-raw-escape: scripts/lttng-tools/gerrit-install-deps.sh
- conditional-step:
build=${build:-}
cc=${cc:-}
+# Controls if the tests are run
+BABELTRACE_RUN_TESTS="${BABELTRACE_RUN_TESTS:=yes}"
SRCDIR="$WORKSPACE/src/babeltrace"
TMPDIR="$WORKSPACE/tmp"
# Run tests, don't fail now, we want to run the archiving steps
failed_tests=0
-$MAKE --keep-going check || failed_tests=1
-
-# Copy tap logs for the jenkins tap parser before cleaning the build dir
-rsync -a --exclude 'test-suite.log' --include '*/' --include '*.log' --exclude='*' tests/ "$WORKSPACE/tap"
-
-# The test suite prior to 1.5 did not produce TAP logs
-if verlt "$PACKAGE_VERSION" "1.5"; then
- mkdir -p "$WORKSPACE/tap/no-log"
- echo "1..1" > "$WORKSPACE/tap/no-log/tests.log"
- echo "ok 1 - Test suite doesn't support logging" >> "$WORKSPACE/tap/no-log/tests.log"
+if [ "$BABELTRACE_RUN_TESTS" = "yes" ]; then
+ $MAKE --keep-going check || failed_tests=1
+
+ # Copy tap logs for the jenkins tap parser before cleaning the build dir
+ rsync -a --exclude 'test-suite.log' --include '*/' --include '*.log' --exclude='*' tests/ "$WORKSPACE/tap"
+
+ # The test suite prior to 1.5 did not produce TAP logs
+ if verlt "$PACKAGE_VERSION" "1.5"; then
+ mkdir -p "$WORKSPACE/tap/no-log"
+ echo "1..1" > "$WORKSPACE/tap/no-log/tests.log"
+ echo "ok 1 - Test suite doesn't support logging" >> "$WORKSPACE/tap/no-log/tests.log"
+ fi
fi
# Clean the build directory
gerrit_json_query=".[0].revisions[.[0].current_revision].ref"
gerrit_json_query_status=".[0].status"
-possible_depends_on="lttng-ust|lttng-modules|userspace-rcu"
+possible_depends_on="lttng-ust|lttng-modules|userspace-rcu|babeltrace"
re="Depends-on: (${possible_depends_on}): ([^'$'\n'']*)"
property_file="${WORKSPACE}/gerrit_custom_dependencies.properties"