diff options
author | Grant Limberg <grant.limberg@zerotier.com> | 2016-11-28 13:06:28 -0800 |
---|---|---|
committer | Grant Limberg <grant.limberg@zerotier.com> | 2016-11-28 13:06:28 -0800 |
commit | cf59362c4aee0b67948b45ec54268ffacff51b05 (patch) | |
tree | 497d047d9f61f7c7a389fcc61863a488e49f4cd2 | |
parent | 84729185590363980a18591f32b10e20fa40cabc (diff) | |
download | infinitytier-cf59362c4aee0b67948b45ec54268ffacff51b05.tar.gz infinitytier-cf59362c4aee0b67948b45ec54268ffacff51b05.zip |
add windows build to Jenkinsfile
-rw-r--r-- | Jenkinsfile | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Jenkinsfile b/Jenkinsfile index a72d2bb1..d1602684 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -58,6 +58,24 @@ parallel 'centos7': { throw err } } +}, 'windows': { + node('windows') { + try { + checkout scm + + stage('Build Windows') { + bat '''CALL "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\vcvarsall.bat" amd64 + +devenv windows\\ZeroTierOne.sln /clean +devenv windows\\ZeroTierOne.sln /build +''' + } + } + catch (err) { + currentBuild.result = "FAILURE" + slackSend color: '#ff0000', message: "${env.JOB_NAME} broken on Windows (<${env.BUILD_URL}|Open>)" + } + } } slackSend color: "#00ff00", message: "${env.JOB_NAME} #${env.BUILD_NUMBER} Complete (<${env.BUILD_URL}|Show More...>)" |