Skip to content

Commit

Permalink
Jenkins: allow test to specify docker image with default
Browse files Browse the repository at this point in the history
  • Loading branch information
lamping7 committed Jan 24, 2019
1 parent 3a7deef commit 1aef875
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .ci/Jenkinsfile-SITL_tests
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,11 @@ pipeline {
} // pipeline

def createTestNode(Map test_def) {
def docker_image = test_def.get('docker_image', 'px4io/px4-dev-ros-kinetic:2018-09-11')
return {
node {
cleanWs()
docker.image("px4io/px4-dev-ros-kinetic:2018-09-11").inside('-e HOME=${WORKSPACE} --cap-add SYS_PTRACE') {
docker.image(docker_image).inside('-e HOME=${WORKSPACE} --cap-add SYS_PTRACE') {
stage(test_def.name) {
def test_ok = true
sh('export')
Expand Down

0 comments on commit 1aef875

Please sign in to comment.