Skip to content

Commit

Permalink
Restore sdformat hook
Browse files Browse the repository at this point in the history
Signed-off-by: Jose Luis Rivero <jrivero@honurobotics.com>
  • Loading branch information
j-rivero committed Feb 21, 2025
1 parent 4334ebe commit 4dab121
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions jenkins-scripts/docker/lib/_sdformat_version_hook.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Identify SDFORMAT_MAJOR_VERSION to help with dependency resolution
SDFORMAT_MAJOR_VERSION=$(\
python3 ${SCRIPT_DIR}/../tools/detect_cmake_major_version.py \
${WORKSPACE}/sdformat/CMakeLists.txt)

# Check SDFORMAT version is integer
if ! [[ ${SDFORMAT_MAJOR_VERSION} =~ ^-?[0-9]+$ ]]; then
echo "Error! SDFORMAT_MAJOR_VERSION is not an integer, check the detection"
exit -1
fi

0 comments on commit 4dab121

Please sign in to comment.