From ec578706833ed41526fbadfe8d1284482b4e9b48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Wiewi=C3=B3rka?= Date: Wed, 12 Jul 2017 18:02:14 +0200 Subject: [PATCH] Fix to Jenkinsfile to enable running R tests in a Docker container (#31) --- Jenkinsfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index eb4d109..8e0dbbf 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,8 +5,7 @@ pipeline { stage('Test R code') { steps { echo 'Testing R code....' - sh "cd R/tests && Rscript run_tests.R" - } + sh 'docker run -i --rm --network="host" -w="/tmp" -v $(pwd | sed "s|/var/jenkins_home|/data/home/jenkins|g")/R/tests:/tmp zsibio.ii.pw.edu.pl:50009/zsi-bio-toolset Rscript run_tests.R' } post { always { junit '**R/tests/*.xml'