Use the official Node image

This commit is contained in:
Emanuele Zattin 2017-10-10 10:12:51 +02:00
parent 2b8caaa95d
commit 20e124bb34
1 changed files with 23 additions and 1 deletions

24
Jenkinsfile vendored
View File

@ -175,10 +175,32 @@ 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 {