- inject:
properties-content: |
BUILD_DEVICE=baremetal
+ scm:
+ - git:
+ url: https://github.com/lttng/lttng-ci
+ basedir: src/lttng-ci/
builders:
- shell: !include-raw-escape: scripts/system-tests/generate-properties-master.sh
properties-content: |
BUILD_DEVICE=kvm
+ scm:
+ - git:
+ url: https://github.com/lttng/lttng-ci
+ basedir: src/lttng-ci/
+
builders:
- shell: !include-raw-escape: scripts/system-tests/generate-properties-master.sh
- trigger-builds:
properties-content: |
BUILD_DEVICE=kvm
+ scm:
+ - git:
+ url: https://github.com/lttng/lttng-ci
+ basedir: src/lttng-ci/
+
builders:
- shell: !include-raw-escape: scripts/system-tests/generate-properties-master.sh
- trigger-builds:
properties-content: |
BUILD_DEVICE=baremetal
+ scm:
+ - git:
+ url: https://github.com/lttng/lttng-ci
+ basedir: src/lttng-ci/
+
builders:
- shell: !include-raw-escape: scripts/system-tests/generate-properties-master.sh
- trigger-builds:
credential-id: system_tests_storage_key
variable: identity_file
+ scm:
+ - git:
+ url: https://github.com/lttng/lttng-ci
+ basedir: src/lttng-ci/
+ - git:
+ url : $KGITREPO
+ basedir: src/linux/
+ branches:
+ - $KERNEL_COMMIT_ID
+ - git:
+ url : $LTTNG_MODULES_REPO
+ basedir: src/lttng-modules/
+ branches:
+ - $LTTNG_MODULES_COMMIT_ID
+
builders:
- shell: !include-raw-escape: scripts/system-tests/generate-properties-slave.sh
- inject:
# kernel or modules
if [ $NEED_MODULES_BUILD -eq 1 ] || [ $NEED_KERNEL_BUILD -eq 1 ] ; then
- git clone "$KGITREPO" "$LINUX_PATH"
- pushd "$LINUX_PATH"
- git checkout "$KERNEL_COMMIT_ID"
- popd
- git clone "$LTTNG_MODULES_GIT" "$LTTNG_MODULES_PATH"
- pushd "$LTTNG_MODULES_PATH"
- git checkout "$LTTNG_MODULES_COMMIT_ID"
- popd
-
- git clone https://github.com/lttng/lttng-ci "$LTTNG_CI_PATH"
- cp "$LTTNG_CI_PATH"/lava/kernel/vanilla/x86_64_server.config "$LINUX_PATH/.config"
+ cp src/lttng-ci/lava/kernel/vanilla/x86_64_server.config "$LINUX_PATH/.config"
make --directory="$LINUX_PATH" olddefconfig
if [ $BUILD_DEVICE = 'kvm' ] ; then
touch properties.txt
-KERNEL_COMMIT_ID=$kernel_tag_id
-LTTNG_MODULES_COMMIT_ID=$modules_commit_id
-LTTNG_TOOLS_COMMIT_ID=$tools_commit_id
-LTTNG_UST_COMMIT_ID=$ust_commit_id
-
LTTNG_CI_PATH="$WORKSPACE/src/lttng-ci"
echo "LTTNG_CI_PATH=$LTTNG_CI_PATH" >> properties.txt
+KERNEL_COMMIT_ID=$KERNEL_TAG_ID
echo "KERNEL_COMMIT_ID=$KERNEL_COMMIT_ID" >> properties.txt
echo "LTTNG_MODULES_COMMIT_ID=$LTTNG_MODULES_COMMIT_ID" >> properties.txt
echo "STORAGE_USER=jenkins-lava" >> properties.txt
echo "BUILD_DEVICE=$BUILD_DEVICE" >> properties.txt
-echo "KGITREPO=$kernel_repo" >> properties.txt
+echo "KGITREPO=$KERNEL_REPO" >> properties.txt
echo "STORAGE_KERNEL_FOLDER=$BASE_STORAGE_FOLDER/kernel" >> properties.txt
echo "STORAGE_KERNEL_IMAGE=$BASE_STORAGE_FOLDER/kernel/$KERNEL_COMMIT_ID.$BUILD_DEVICE.bzImage" >> properties.txt
echo "STORAGE_LINUX_MODULES=$BASE_STORAGE_FOLDER/modules/linux/$KERNEL_COMMIT_ID.$BUILD_DEVICE.linux.modules.tar.gz" >> properties.txt
-echo "STORAGE_LTTNG_MODULES=$BASE_STORAGE_FOLDER/modules/lttng/i$KERNEL_COMMIT_ID-$LTTNG_MODULES_COMMIT_ID.$BUILD_DEVICE.lttng.modules.tar.gz" >> properties.txt
+echo "STORAGE_LTTNG_MODULES=$BASE_STORAGE_FOLDER/modules/lttng/$KERNEL_COMMIT_ID-$LTTNG_MODULES_COMMIT_ID.$BUILD_DEVICE.lttng.modules.tar.gz" >> properties.txt
NPROC=$(nproc)
echo "NPROC=$NPROC" >> properties.txt
-LTTNG_CI_PATH="$WORKSPACE/src/lttng-ci"
LINUX_PATH="$WORKSPACE/src/linux"
LTTNG_MODULES_PATH="$WORKSPACE/src/lttng-modules"
echo "LTTNG_MODULES_GIT=$LTTNG_MODULES_REPO" >> properties.txt
-echo "LTTNG_CI_PATH=$LTTNG_CI_PATH" >> properties.txt
echo "LINUX_PATH=$LINUX_PATH" >> properties.txt
echo "LTTNG_MODULES_PATH=$LTTNG_MODULES_PATH" >> properties.txt
echo 'At this point, we built the modules and kernel if we needed to.'
echo 'We can now launch the lava job using those artefacts'
-
-git clone https://github.com/lttng/lttng-ci "$LTTNG_CI_PATH"
-
python3 -u "$LTTNG_CI_PATH"/scripts/lttng-baremetal-tests/lava-submit.py \
-t baremetal-benchmarks \
-j "$JOB_NAME" \
echo 'At this point, we built the modules and kernel if we needed to.'
echo 'We can now launch the lava job using those artefacts'
-git clone https://github.com/lttng/lttng-ci "$LTTNG_CI_PATH"
-
python3 -u "$LTTNG_CI_PATH"/scripts/lttng-baremetal-tests/lava-submit.py \
-t baremetal-tests \
-j "$JOB_NAME" \
echo 'At this point, we built the modules and kernel if we needed to.'
echo 'We can now launch the lava job using those artefacts'
-git clone https://github.com/lttng/lttng-ci "$LTTNG_CI_PATH"
-
python3 -u "$LTTNG_CI_PATH"/scripts/lttng-baremetal-tests/lava-submit.py \
-t kvm-fuzzing-tests \
-j "$JOB_NAME" \
echo 'At this point, we built the modules and kernel if we needed to.'
echo 'We can now launch the lava job using those artefacts'
-git clone https://github.com/lttng/lttng-ci "$LTTNG_CI_PATH"
-
python3 -u "$LTTNG_CI_PATH"/scripts/lttng-baremetal-tests/lava-submit.py \
-t kvm-tests \
-j "$JOB_NAME" \