Переглянути джерело

add macos build to jenkins

Grant Limberg 5 роки тому
батько
коміт
4036657e32
1 змінених файлів з 17 додано та 1 видалено
  1. 17 1
      Jenkinsfile

+ 17 - 1
Jenkinsfile

@@ -21,7 +21,8 @@ pipeline {
                     tasks << buildStaticBinaries()
                     tasks << buildDebianNative()
                     tasks << buildCentosNative()
-                    
+                    tasks << buildMacOS()
+
                     parallel tasks
                 }
             }
@@ -36,6 +37,21 @@ pipeline {
     }
 }
 
+def buildMacOS() {
+    tasks << getTasks({ ->
+        def myNode = {
+            node ('mac') {
+                dir("build") {
+                    checkout scm
+                    sh 'make'
+                    cleanWs deleteDirs: true, disableDeferredWipeout: true, notFailBuild: true
+                }
+            }
+        }
+    })
+    return tasks
+}
+
 def buildStaticBinaries() {
     def tasks = [:]
     def dist = ["alpine"]