mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-22 01:30:35 +08:00
Jenkins fetch all tags
This commit is contained in:
@@ -86,6 +86,7 @@ pipeline {
|
|||||||
steps {
|
steps {
|
||||||
sh 'export'
|
sh 'export'
|
||||||
sh 'make distclean'
|
sh 'make distclean'
|
||||||
|
sh 'git fetch --tags'
|
||||||
sh 'make python_coverage'
|
sh 'make python_coverage'
|
||||||
withCredentials([string(credentialsId: 'FIRMWARE_CODECOV_TOKEN', variable: 'CODECOV_TOKEN')]) {
|
withCredentials([string(credentialsId: 'FIRMWARE_CODECOV_TOKEN', variable: 'CODECOV_TOKEN')]) {
|
||||||
sh 'curl -s https://codecov.io/bash | bash -s - -F python'
|
sh 'curl -s https://codecov.io/bash | bash -s - -F python'
|
||||||
@@ -105,6 +106,7 @@ pipeline {
|
|||||||
steps {
|
steps {
|
||||||
sh 'export'
|
sh 'export'
|
||||||
sh 'make distclean'
|
sh 'make distclean'
|
||||||
|
sh 'git fetch --tags'
|
||||||
sh 'make px4_sitl_test test_results_junit'
|
sh 'make px4_sitl_test test_results_junit'
|
||||||
withCredentials([string(credentialsId: 'FIRMWARE_CODECOV_TOKEN', variable: 'CODECOV_TOKEN')]) {
|
withCredentials([string(credentialsId: 'FIRMWARE_CODECOV_TOKEN', variable: 'CODECOV_TOKEN')]) {
|
||||||
sh 'curl -s https://codecov.io/bash | bash -s - -F unittest'
|
sh 'curl -s https://codecov.io/bash | bash -s - -F unittest'
|
||||||
@@ -145,6 +147,7 @@ def createTestNode(Map test_def) {
|
|||||||
// run test
|
// run test
|
||||||
try {
|
try {
|
||||||
sh('make distclean')
|
sh('make distclean')
|
||||||
|
sh 'git fetch --tags'
|
||||||
sh('ccache -z')
|
sh('ccache -z')
|
||||||
sh('make px4_sitl_default')
|
sh('make px4_sitl_default')
|
||||||
sh('make px4_sitl_default sitl_gazebo')
|
sh('make px4_sitl_default sitl_gazebo')
|
||||||
|
|||||||
Vendored
+2
@@ -245,6 +245,7 @@ pipeline {
|
|||||||
steps {
|
steps {
|
||||||
sh 'export'
|
sh 'export'
|
||||||
sh 'make distclean'
|
sh 'make distclean'
|
||||||
|
sh 'git fetch --tags'
|
||||||
sh 'make scan-build'
|
sh 'make scan-build'
|
||||||
// publish html
|
// publish html
|
||||||
publishHTML target: [
|
publishHTML target: [
|
||||||
@@ -303,6 +304,7 @@ pipeline {
|
|||||||
steps {
|
steps {
|
||||||
sh 'export'
|
sh 'export'
|
||||||
sh 'make distclean'
|
sh 'make distclean'
|
||||||
|
sh 'git fetch --tags'
|
||||||
sh 'make cppcheck'
|
sh 'make cppcheck'
|
||||||
// publish html
|
// publish html
|
||||||
publishHTML target: [
|
publishHTML target: [
|
||||||
|
|||||||
Reference in New Issue
Block a user