From 546ede19c7f0ce3a17699fbb26f5eedc81b0aba2 Mon Sep 17 00:00:00 2001 From: John Kleinschmidt Date: Mon, 6 Nov 2017 09:44:26 -0500 Subject: [PATCH] Add Jenkinsfile to use Jenkins pipeline --- Jenkinsfile | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 000000000000..51ad1b492dcb --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,44 @@ +pipeline { + agent none + stages { + stage('Build') { + parallel { + stage('electron-osx-x64') { + agent { + label 'osx' + } + steps { + sh 'script/bootstrap.py --target_arch=x64 --dev' + sh 'npm run lint' + sh 'script/build.py -c D' + sh 'script/test.py --ci --rebuild_native_modules' + } + post { + always { + cleanWs() + } + } + } + stage('electron-mas-x64') { + agent { + label 'osx' + } + environment { + MAS_BUILD = '1' + } + steps { + sh 'script/bootstrap.py --target_arch=x64 --dev' + sh 'npm run lint' + sh 'script/build.py -c D' + sh 'script/test.py --ci --rebuild_native_modules' + } + post { + always { + cleanWs() + } + } + } + } + } + } +}