Skip to content
Snippets Groups Projects
Commit 5c17a0b2 authored by TSC21's avatar TSC21 Committed by Lorenz Meier
Browse files

Jenkins CI: ROS msgs: clone by branch

parent be2e1edb
No related branches found
No related tags found
No related merge requests found
......@@ -480,7 +480,7 @@ pipeline {
steps {
sh('export')
withCredentials([usernamePassword(credentialsId: 'px4buildbot_github_personal_token', passwordVariable: 'GIT_PASS', usernameVariable: 'GIT_USER')]) {
sh('git clone https://${GIT_USER}:${GIT_PASS}@github.com/PX4/px4_msgs.git')
sh('git clone https://${GIT_USER}:${GIT_PASS}@github.com/PX4/px4_msgs.git -b ${GIT_BRANCH}')
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 push origin master || true')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment