Merge pull request #1399 from realm/ez/use-node-image

Use the official Node image
This commit is contained in:
Emanuele Zattin 2017-10-10 11:31:19 +02:00 committed by GitHub
commit 957a6dd292
1 changed files with 18 additions and 1 deletions

19
Jenkinsfile vendored
View File

@ -175,7 +175,24 @@ def doAndroidBuild(target, postStep = null) {
def doDockerBuild(target, postStep = null) { def doDockerBuild(target, postStep = null) {
return { return {
node('docker') { node('docker') {
doDockerInside("./scripts/docker-wrapper.sh ./scripts/test.sh", target, postStep) deleteDir()
unstash 'source'
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
}
} }
} }
} }