Skip to content

Commit

Permalink
[CI] DOCA compilation: add trigger for DOCA compilation
Browse files Browse the repository at this point in the history
We prepare DOCA environment for XLIO "build" step, that will be fully integrated at the later steps:
- check do_compile_doca variable
- define jenkins_test_doca trigger

Issue: HPCINFRA-1968

Signed-off-by: Viacheslav Login <vlogin@nvidia.com>
  • Loading branch information
vialogi committed May 11, 2024
1 parent 2552a52 commit 1a87fd0
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .ci/matrix_job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,23 @@ steps:
run: |
./autogen.sh -s
parallel: false

- name: Build with DOCA
enable: ${do_compile_doca} && $(do_build)
containerSelector:
- "{category: 'doca'}"
agentSelector:
- "{nodeLabel: 'skip-agent'}"
run: |
[ "x${do_compile_doca}" == "xtrue" ] && action=yes || action=no
env WORKSPACE=$PWD TARGET=${flags} jenkins_test_build=${action} jenkins_test_doca=${action} ./contrib/test_jenkins.sh
parallel: false
onfail: |
./.ci/artifacts.sh
archiveArtifacts-onfail: |
jenkins/**/arch-*.tar.gz
archiveTap-onfail: |
jenkins/**/*.tap
- name: Build
enable: ${do_build}
Expand Down
4 changes: 4 additions & 0 deletions .ci/proj_jjb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@
name: "do_build"
default: true
description: "This verifies different configuration using gcc compiler."
- bool:
name: "do_compile_doca"
default: false
description: "Compiles DOCA SDK for futher tests with XLIO."
- bool:
name: "do_compiler"
default: true
Expand Down
7 changes: 7 additions & 0 deletions contrib/test_jenkins.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ jenkins_test_style=${jenkins_test_style:="no"}
jenkins_test_tool=${jenkins_test_tool:="no"}
jenkins_test_commit=${jenkins_test_commit:="no"}
jenkins_test_tidy=${jenkins_test_tidy:="no"}
jenkins_test_doca=${jenkins_test_doca:="no"}

echo
for var in ${!jenkins_test_@}; do
Expand Down Expand Up @@ -115,6 +116,12 @@ if [ "$TARGET" == "all" -o "$TARGET" == "default" ]; then
do_err "target: $TARGET"
exit 1
fi
if [ "$jenkins_test_doca" = "yes" ]; then
echo "===== DOCA checkout & compilation starts ====="
if do_compile_doca; then
echo "===== DOCA compilation complete ====="
fi
fi
fi

echo
Expand Down

0 comments on commit 1a87fd0

Please sign in to comment.