Przeglądaj źródła

[ci] Run OSX package builds on master only once per day

Alexander Köplinger 6 lat temu
rodzic
commit
4909cf320f

+ 6 - 2
scripts/ci/pipeline/osx-package.groovy

@@ -8,8 +8,12 @@ def isWindowsPrBuild = (isPr && env.ghprbCommentBody.contains("@monojenkins buil
 def packageFileName = null
 def packageFileName = null
 def commitHash = null
 def commitHash = null
 def utils = null
 def utils = null
-// compression is incompatible with JEP-210 right now
-properties([ /* compressBuildLog() */ ])
+
+if (monoBranch == 'master') {
+    properties([ /* compressBuildLog() */  // compression is incompatible with JEP-210 right now
+                pipelineTriggers([cron('H H(0-3) * * *')])
+    ])
+}
 
 
 try {
 try {
     timestamps {
     timestamps {

+ 9 - 5
scripts/ci/pipeline/sdks-archive.groovy

@@ -1,5 +1,12 @@
-// compression is incompatible with JEP-210 right now
-properties([/* compressBuildLog() */])
+def isPr = (env.ghprbPullId && !env.ghprbPullId.empty ? true : false)
+def monoBranch = (isPr ? "pr" : env.BRANCH_NAME)
+def jobName = (isPr ? "archive-mono-pullrequest" : "archive-mono")
+
+if (monoBranch == 'master') {
+    properties([ /* compressBuildLog() */  // compression is incompatible with JEP-210 right now
+                pipelineTriggers([cron('H H(0-3) * * *')])
+    ])
+}
 
 
 parallel (
 parallel (
     "Android Darwin (Debug)": {
     "Android Darwin (Debug)": {
@@ -61,9 +68,6 @@ parallel (
 )
 )
 
 
 def archive (product, configuration, platform, chrootname = "", chrootadditionalpackages = "", chrootBindMounts = "") {
 def archive (product, configuration, platform, chrootname = "", chrootadditionalpackages = "", chrootBindMounts = "") {
-    def isPr = (env.ghprbPullId && !env.ghprbPullId.empty ? true : false)
-    def monoBranch = (isPr ? "pr" : env.BRANCH_NAME)
-    def jobName = (isPr ? "archive-mono-pullrequest" : "archive-mono")
     def packageFileName = null
     def packageFileName = null
     def packageFileSha1 = null
     def packageFileSha1 = null
     def commitHash = null
     def commitHash = null