diff --git a/Jenkinsfile b/Jenkinsfile index 4f1d4b39a..284190202 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -22,6 +22,7 @@ pipeline { tasks << buildDebianNative() tasks << buildCentosNative() tasks << buildMacOS() + tasks << buildWindows() parallel tasks } @@ -54,6 +55,30 @@ def buildMacOS() { return tasks } +def buildWindows() { + def tasks = [:] + tasks << getTasks(['windows'], ['amd64'], { unused1, unused2 -> + def myNode = { + node ('windows') { + dir ("build") { + checkout scm + dir ("build") { + bat """ + CALL C:\\MinGW\\set_distro_paths.bat + cmake -G"MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release .. + make -j8 + """ + } + cleanWs deleteDirs: true, disableDeferredWipeout: true, notFailBuild: true + } + } + } + return myNode + }) + + return tasks +} + def buildStaticBinaries() { def tasks = [:] def dist = ["alpine"]