Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alberto Ruiz Garcia
Firmware
Commits
542cd7f2
Unverified
Commit
542cd7f2
authored
6 years ago
by
Daniel Agar
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Jenkins move hardware testing to JLink debugger setup
parent
8ae3f500
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.ci/Jenkinsfile-hardware
+35
-31
35 additions, 31 deletions
.ci/Jenkinsfile-hardware
with
35 additions
and
31 deletions
.ci/Jenkinsfile-hardware
+
35
−
31
View file @
542cd7f2
...
...
@@ -6,10 +6,10 @@ pipeline {
parallel {
stage('px4_fmu-v
2
') {
stage('px4_fmu-v
4_default
') {
agent {
docker {
image 'px4io/px4-dev-nuttx:201
8-11-22
'
image 'px4io/px4-dev-nuttx:201
9-01-01
'
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw'
}
}
...
...
@@ -18,11 +18,11 @@ pipeline {
sh 'make distclean'
sh 'ccache -z'
sh 'git fetch --tags'
sh 'make px4_fmu-v
2_tes
t'
sh 'make px4_fmu-v
4_defaul
t'
sh 'make sizes'
sh 'ccache -s'
stash includes: 'build/px4_fmu-v
2_tes
t/px4_fmu-v
2_tes
t.elf', name: 'px4_fmu-v
2_tes
t'
stash includes: 'Tools/HIL/monitor_firmware_upload.py, Tools/HIL/run_tests.py', name: 'scripts-px4_fmu-v
2
'
stash includes: 'build/px4_fmu-v
4_defaul
t/px4_fmu-v
4_defaul
t.elf', name: 'px4_fmu-v
4_defaul
t'
stash includes: 'Tools/HIL/monitor_firmware_upload.py, Tools/HIL/run_tests.py', name: 'scripts-px4_fmu-v
4_default
'
}
post {
always {
...
...
@@ -31,10 +31,10 @@ pipeline {
}
}
stage('px4_fmu-v4
(
stackcheck
)
') {
stage('px4_fmu-v4
_
stackcheck') {
agent {
docker {
image 'px4io/px4-dev-nuttx:201
8-11-22
'
image 'px4io/px4-dev-nuttx:201
9-01-01
'
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw'
}
}
...
...
@@ -47,7 +47,7 @@ pipeline {
sh 'make sizes'
sh 'ccache -s'
stash includes: 'build/px4_fmu-v4_stackcheck/px4_fmu-v4_stackcheck.elf', name: 'px4_fmu-v4_stackcheck'
stash includes: 'Tools/HIL/monitor_firmware_upload.py, Tools/HIL/run_tests.py', name: 'scripts-px4_fmu-v4'
stash includes: 'Tools/HIL/monitor_firmware_upload.py, Tools/HIL/run_tests.py', name: 'scripts-px4_fmu-v4
_stackcheck
'
}
post {
always {
...
...
@@ -63,29 +63,31 @@ pipeline {
parallel {
stage('px4
_
fmu-v
2
') {
stage('px4fmu-v
4_default
') {
agent {
label 'px4fmu-v
2
'
label 'px4fmu-v
4
'
}
steps {
script {
try {
sh 'export'
sh 'find /dev/serial'
unstash 'scripts-px4_fmu-v2'
unstash 'px4_fmu-v2_test'
sh ''' gdb -nx --batch \
-ex "target extended-remote `find /dev/serial -name *Black_Magic_Probe_*-if00`" \
-ex "monitor version" \
-ex "monitor connect_srst enable" \
-ex "monitor swdp_scan" \
-ex "attach 1" \
unstash 'scripts-px4_fmu-v4_default'
unstash 'px4_fmu-v4_default'
sh ''' JLinkGDBServerCLExe -device STM32F427VI -endian little -if SWD -speed auto -noir -LocalhostOnly -silent & \
gdb-multiarch -nx --batch \
-ex "target remote localhost:2331" \
-ex "monitor reset 0" \
-ex "load" \
-ex "monitor compare-sections" \
-ex "monitor reset 0" \
-ex "monitor sleep 1000" \
-ex "monitor go" \
-ex "kill" \
build/px4_fmu-v
2_tes
t/px4_fmu-v
2_tes
t.elf
build/px4_fmu-v
4_defaul
t/px4_fmu-v
4_defaul
t.elf
'''
sh './Tools/HIL/monitor_firmware_upload.py --device `find /dev/serial -name *
Black_Magic_Probe_*-if02
` --baudrate 57600'
sh './Tools/HIL/run_tests.py --device `find /dev/serial -name *
Black_Magic_Probe_*-if02
`'
sh './Tools/HIL/monitor_firmware_upload.py --device `find /dev/serial -name *
usb-FTDI_TTL232R-3V3_*
` --baudrate 57600'
sh './Tools/HIL/run_tests.py --device `find /dev/serial -name *
usb-FTDI_TTL232R-3V3_*
`'
} catch (Exception err) {
// always report passed for now
currentBuild.result = 'SUCCESS'
...
...
@@ -97,7 +99,7 @@ pipeline {
}
}
stage('px4
_
fmu-v4') {
stage('px4fmu-v4
_stackcheck
') {
agent {
label 'px4fmu-v4'
}
...
...
@@ -106,20 +108,22 @@ pipeline {
try {
sh 'export'
sh 'find /dev/serial'
unstash 'scripts-px4_fmu-v4'
unstash 'scripts-px4_fmu-v4
_stackcheck
'
unstash 'px4_fmu-v4_stackcheck'
sh ''' gdb -nx --batch \
-ex "target extended-remote `find /dev/serial -name *Black_Magic_Probe_*-if00`" \
-ex "monitor version" \
-ex "monitor connect_srst enable" \
-ex "monitor swdp_scan" \
-ex "attach 1" \
sh ''' JLinkGDBServerCLExe -device STM32F427VI -endian little -if SWD -speed auto -noir -LocalhostOnly -silent & \
gdb-multiarch -nx --batch \
-ex "target remote localhost:2331" \
-ex "monitor reset 0" \
-ex "load" \
-ex "monitor compare-sections" \
-ex "monitor reset 0" \
-ex "monitor sleep 1000" \
-ex "monitor go" \
-ex "kill" \
build/px4_fmu-v4_stackcheck/px4_fmu-v4_stackcheck.elf
'''
sh './Tools/HIL/monitor_firmware_upload.py --device `find /dev/serial -name *
Black_Magic_Probe_*-if02
` --baudrate 57600'
sh './Tools/HIL/run_tests.py --device `find /dev/serial -name *
Black_Magic_Probe_*-if02
`'
sh './Tools/HIL/monitor_firmware_upload.py --device `find /dev/serial -name *
usb-FTDI_TTL232R-3V3_*
` --baudrate 57600'
sh './Tools/HIL/run_tests.py --device `find /dev/serial -name *
usb-FTDI_TTL232R-3V3_*
`'
} catch (Exception err) {
// always report passed for now
currentBuild.result = 'SUCCESS'
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment