mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 02:55:07 +08:00
CI: ensure 'git fetch --tags' is executed for all Firmware builds
This commit is contained in:
@@ -18,6 +18,7 @@ pipeline {
|
|||||||
steps {
|
steps {
|
||||||
sh 'export'
|
sh 'export'
|
||||||
sh 'make distclean'
|
sh 'make distclean'
|
||||||
|
sh 'git fetch --tags'
|
||||||
sh 'ccache -z'
|
sh 'ccache -z'
|
||||||
sh 'make px4_sitl_default'
|
sh 'make px4_sitl_default'
|
||||||
sh 'ccache -s'
|
sh 'ccache -s'
|
||||||
@@ -39,6 +40,7 @@ pipeline {
|
|||||||
steps {
|
steps {
|
||||||
sh 'export'
|
sh 'export'
|
||||||
sh 'make distclean'
|
sh 'make distclean'
|
||||||
|
sh 'git fetch --tags'
|
||||||
sh 'ccache -z'
|
sh 'ccache -z'
|
||||||
sh 'make px4_fmu-v5_default'
|
sh 'make px4_fmu-v5_default'
|
||||||
sh 'ccache -s'
|
sh 'ccache -s'
|
||||||
@@ -60,6 +62,7 @@ pipeline {
|
|||||||
steps {
|
steps {
|
||||||
sh 'export'
|
sh 'export'
|
||||||
sh 'make distclean'
|
sh 'make distclean'
|
||||||
|
sh 'git fetch --tags'
|
||||||
sh 'ccache -z'
|
sh 'ccache -z'
|
||||||
sh 'make tests'
|
sh 'make tests'
|
||||||
sh 'ccache -s'
|
sh 'ccache -s'
|
||||||
|
|||||||
Vendored
+3
@@ -23,6 +23,7 @@ pipeline {
|
|||||||
cd catkin_ws;
|
cd catkin_ws;
|
||||||
git -C ${WORKSPACE}/catkin_ws/src/Firmware submodule update --init --recursive --force Tools/sitl_gazebo
|
git -C ${WORKSPACE}/catkin_ws/src/Firmware submodule update --init --recursive --force Tools/sitl_gazebo
|
||||||
git clone --recursive ${WORKSPACE}/catkin_ws/src/Firmware/Tools/sitl_gazebo src/mavlink_sitl_gazebo;
|
git clone --recursive ${WORKSPACE}/catkin_ws/src/Firmware/Tools/sitl_gazebo src/mavlink_sitl_gazebo;
|
||||||
|
git -C ${WORKSPACE}/catkin_ws/src/Firmware fetch --tags;
|
||||||
source /opt/ros/melodic/setup.bash;
|
source /opt/ros/melodic/setup.bash;
|
||||||
catkin init;
|
catkin init;
|
||||||
catkin build -j$(nproc) -l$(nproc);
|
catkin build -j$(nproc) -l$(nproc);
|
||||||
@@ -60,6 +61,7 @@ pipeline {
|
|||||||
cd colcon_ws;
|
cd colcon_ws;
|
||||||
git -C ${WORKSPACE}/colcon_ws/src/Firmware submodule update --init --recursive --force Tools/sitl_gazebo
|
git -C ${WORKSPACE}/colcon_ws/src/Firmware submodule update --init --recursive --force Tools/sitl_gazebo
|
||||||
git clone --recursive ${WORKSPACE}/colcon_ws/src/Firmware/Tools/sitl_gazebo src/mavlink_sitl_gazebo;
|
git clone --recursive ${WORKSPACE}/colcon_ws/src/Firmware/Tools/sitl_gazebo src/mavlink_sitl_gazebo;
|
||||||
|
git -C ${WORKSPACE}/colcon_ws/src/Firmware fetch --tags;
|
||||||
source /opt/ros/bouncy/setup.sh;
|
source /opt/ros/bouncy/setup.sh;
|
||||||
source /opt/ros/melodic/setup.sh;
|
source /opt/ros/melodic/setup.sh;
|
||||||
colcon build --event-handlers console_direct+ --symlink-install;
|
colcon build --event-handlers console_direct+ --symlink-install;
|
||||||
@@ -338,6 +340,7 @@ pipeline {
|
|||||||
steps {
|
steps {
|
||||||
sh 'export'
|
sh 'export'
|
||||||
sh 'make distclean'
|
sh 'make distclean'
|
||||||
|
sh 'git fetch --tags'
|
||||||
sh 'make px4_fmu-v2_default stack_check'
|
sh 'make px4_fmu-v2_default stack_check'
|
||||||
}
|
}
|
||||||
post {
|
post {
|
||||||
|
|||||||
+1
-1
@@ -36,7 +36,7 @@ build_script:
|
|||||||
# safe the repopath for switching to it in cygwin bash
|
# safe the repopath for switching to it in cygwin bash
|
||||||
- for /f %%i in ('cygpath -u %%CD%%') do set repopath=%%i
|
- for /f %%i in ('cygpath -u %%CD%%') do set repopath=%%i
|
||||||
# build the make target
|
# build the make target
|
||||||
- call bash --login -c "cd $repopath && make $PX4_CONFIG"
|
- call bash --login -c "cd $repopath && git fetch --tags && make $PX4_CONFIG"
|
||||||
|
|
||||||
# Note: using bash --login is important
|
# Note: using bash --login is important
|
||||||
# because otherwise certain things (like python; import numpy) do not work
|
# because otherwise certain things (like python; import numpy) do not work
|
||||||
|
|||||||
Reference in New Issue
Block a user