forked from Archive/PX4-Autopilot
CI: ensure 'git fetch --tags' is executed for all Firmware builds
This commit is contained in:
parent
05ff7bb731
commit
ac5669deb4
|
@ -18,6 +18,7 @@ pipeline {
|
|||
steps {
|
||||
sh 'export'
|
||||
sh 'make distclean'
|
||||
sh 'git fetch --tags'
|
||||
sh 'ccache -z'
|
||||
sh 'make px4_sitl_default'
|
||||
sh 'ccache -s'
|
||||
|
@ -39,6 +40,7 @@ pipeline {
|
|||
steps {
|
||||
sh 'export'
|
||||
sh 'make distclean'
|
||||
sh 'git fetch --tags'
|
||||
sh 'ccache -z'
|
||||
sh 'make px4_fmu-v5_default'
|
||||
sh 'ccache -s'
|
||||
|
@ -60,6 +62,7 @@ pipeline {
|
|||
steps {
|
||||
sh 'export'
|
||||
sh 'make distclean'
|
||||
sh 'git fetch --tags'
|
||||
sh 'ccache -z'
|
||||
sh 'make tests'
|
||||
sh 'ccache -s'
|
||||
|
|
|
@ -23,6 +23,7 @@ pipeline {
|
|||
cd catkin_ws;
|
||||
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 -C ${WORKSPACE}/catkin_ws/src/Firmware fetch --tags;
|
||||
source /opt/ros/melodic/setup.bash;
|
||||
catkin init;
|
||||
catkin build -j$(nproc) -l$(nproc);
|
||||
|
@ -60,6 +61,7 @@ pipeline {
|
|||
cd colcon_ws;
|
||||
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 -C ${WORKSPACE}/colcon_ws/src/Firmware fetch --tags;
|
||||
source /opt/ros/bouncy/setup.sh;
|
||||
source /opt/ros/melodic/setup.sh;
|
||||
colcon build --event-handlers console_direct+ --symlink-install;
|
||||
|
@ -338,6 +340,7 @@ pipeline {
|
|||
steps {
|
||||
sh 'export'
|
||||
sh 'make distclean'
|
||||
sh 'git fetch --tags'
|
||||
sh 'make px4_fmu-v2_default stack_check'
|
||||
}
|
||||
post {
|
||||
|
|
|
@ -36,7 +36,7 @@ build_script:
|
|||
# safe the repopath for switching to it in cygwin bash
|
||||
- for /f %%i in ('cygpath -u %%CD%%') do set repopath=%%i
|
||||
# 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
|
||||
# because otherwise certain things (like python; import numpy) do not work
|
||||
|
|
Loading…
Reference in New Issue