diff --git a/Jenkinsfile b/Jenkinsfile index 9848c78f..7925dd71 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -175,11 +175,33 @@ def doAndroidBuild(target, postStep = null) { def doDockerBuild(target, postStep = null) { return { node('docker') { - doDockerInside("./scripts/docker-wrapper.sh ./scripts/test.sh", target, postStep) + try { + reportStatus(target, 'PENDING', 'Build has started') + + docker.image('node:6').inside('-e HOME=/tmp') { + sh "scripts/test.sh ${target}" + if(postStep) { + postStep.call() + } + deleteDir() + reportStatus(target, 'SUCCESS', 'Success!') + } + } catch(Exception e) { + reportStatus(target, 'FAILURE', e.toString()) + throw e + } } } } +// def doDockerBuild(target, postStep = null) { +// return { +// node('docker') { +// doDockerInside("./scripts/docker-wrapper.sh ./scripts/test.sh", target, postStep) +// } +// } +// } + def doMacBuild(target, postStep = null) { return { node('osx_vegas') {