Add srv/ folder and srv/VehicleCommand.srv

update CI (github and Jenkins) to push changes of srv/
to PX4/px4_msgs repo

Signed-off-by: Beniamino Pozzan <beniamino.pozzan@gmail.com>
This commit is contained in:
Beniamino Pozzan 2023-10-28 22:37:00 +01:00 committed by Daniel Agar
parent efa12ad224
commit 4555c4e5cc
3 changed files with 7 additions and 0 deletions

View File

@ -128,4 +128,6 @@ jobs:
run: |
git clone https://github.com/PX4/px4_msgs.git
rm px4_msgs/msg/*.msg
rm px4_msgs/srv/*.srv
cp msg/*.msg px4_msgs/msg/
cp srv/*.srv px4_msgs/srv/

2
Jenkinsfile vendored
View File

@ -230,7 +230,9 @@ pipeline {
sh("git clone https://${GIT_USER}:${GIT_PASS}@github.com/PX4/px4_msgs.git")
// 'main' branch
sh('rm -f px4_msgs/msg/*.msg')
sh('rm -f px4_msgs/srv/*.srv')
sh('cp msg/*.msg px4_msgs/msg/')
sh('cp srv/*.srv px4_msgs/srv/')
sh('cd px4_msgs; git status; git add .; git commit -a -m "Update message definitions `date`" || true')
sh('cd px4_msgs; git push origin main || true')
sh('rm -rf px4_msgs')

3
srv/VehicleCommand.srv Normal file
View File

@ -0,0 +1,3 @@
VehicleCommand request
---
VehicleCommandAck reply