Browse Source

Jenkins CI: PX4 ROS msgs stage: properly name the ros1 branch

sbg
TSC21 6 years ago committed by Nuno Marques
parent
commit
d4570e10f3
  1. 6
      Jenkinsfile

6
Jenkinsfile vendored

@ -511,17 +511,17 @@ pipeline {
sh('cd px4_msgs; git status; git add .; git commit -a -m "Update message definitions `date`" || true') sh('cd px4_msgs; git status; git add .; git commit -a -m "Update message definitions `date`" || true')
sh('cd px4_msgs; git push origin master || true') sh('cd px4_msgs; git push origin master || true')
// 'ros1' branch // 'ros1' branch
sh('cd px4_msgs; git checkout feature/deploy_ros1_msgs') sh('cd px4_msgs; git checkout ros1')
sh('python msg/tools/uorb_to_ros_msgs.py msg/ px4_msgs/msg/') sh('python msg/tools/uorb_to_ros_msgs.py msg/ px4_msgs/msg/')
sh('cd px4_msgs; git status; git add .; git commit -a -m "Update message definitions `date`" || true') sh('cd px4_msgs; git status; git add .; git commit -a -m "Update message definitions `date`" || true')
sh('cd px4_msgs; git push origin feature/deploy_ros1_msgs || true') sh('cd px4_msgs; git push origin ros1 || true')
sh('rm -rf px4_msgs') sh('rm -rf px4_msgs')
} }
} }
when { when {
anyOf { anyOf {
branch 'master' branch 'master'
branch 'feature/deploy_ros1_msgs' // for testing branch 'pr-jenkins' // for testing
} }
} }
} }

Loading…
Cancel
Save