mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 18:47:21 +08:00
Jenkinsfile: deploy uorb graph
This commit is contained in:
Vendored
+4
-2
@@ -174,8 +174,8 @@ pipeline {
|
|||||||
sh 'git fetch --all --tags'
|
sh 'git fetch --all --tags'
|
||||||
sh 'make uorb_graphs'
|
sh 'make uorb_graphs'
|
||||||
dir('Tools/uorb_graph') {
|
dir('Tools/uorb_graph') {
|
||||||
archiveArtifacts(artifacts: 'graph_px4_sitl.json')
|
archiveArtifacts(artifacts: 'graph_*.json')
|
||||||
stash includes: 'graph_px4_sitl.json', name: 'uorb_graph'
|
stash includes: 'graph_*.json', name: 'uorb_graph'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
post {
|
post {
|
||||||
@@ -202,11 +202,13 @@ pipeline {
|
|||||||
unstash 'metadata_parameters'
|
unstash 'metadata_parameters'
|
||||||
unstash 'metadata_module_documentation'
|
unstash 'metadata_module_documentation'
|
||||||
unstash 'msg_documentation'
|
unstash 'msg_documentation'
|
||||||
|
unstash 'uorb_graph'
|
||||||
withCredentials([usernamePassword(credentialsId: 'px4buildbot_github_personal_token', passwordVariable: 'GIT_PASS', usernameVariable: 'GIT_USER')]) {
|
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_user_guide.git')
|
sh('git clone https://${GIT_USER}:${GIT_PASS}@github.com/PX4/px4_user_guide.git')
|
||||||
sh('cp airframes.md px4_user_guide/en/airframes/airframe_reference.md')
|
sh('cp airframes.md px4_user_guide/en/airframes/airframe_reference.md')
|
||||||
sh('cp parameters.md px4_user_guide/en/advanced_config/parameter_reference.md')
|
sh('cp parameters.md px4_user_guide/en/advanced_config/parameter_reference.md')
|
||||||
sh('cp -R modules/*.md px4_user_guide/en/modules/')
|
sh('cp -R modules/*.md px4_user_guide/en/modules/')
|
||||||
|
sh('cp -R graph_*.json px4_user_guide/.vuepress/public/en/middleware/')
|
||||||
sh('cp -R msg_docs/*.md px4_user_guide/en/msg_docs/')
|
sh('cp -R msg_docs/*.md px4_user_guide/en/msg_docs/')
|
||||||
sh('cd px4_user_guide; git status; git add .; git commit -a -m "Update PX4 Firmware metadata `date`" || true')
|
sh('cd px4_user_guide; git status; git add .; git commit -a -m "Update PX4 Firmware metadata `date`" || true')
|
||||||
sh('cd px4_user_guide; git push origin master || true')
|
sh('cd px4_user_guide; git push origin master || true')
|
||||||
|
|||||||
Reference in New Issue
Block a user