diff options
author | Alexander Köplinger <alex.koeplinger@outlook.com> | 2019-07-19 22:10:20 +0300 |
---|---|---|
committer | Alexander Köplinger <alex.koeplinger@outlook.com> | 2019-07-19 22:10:20 +0300 |
commit | 4909cf320f995b2dcbb64b9083b084be3e2ae778 (patch) | |
tree | 51e49bde62e325fad6c5e25e2bd520d8a81db652 /scripts | |
parent | 3e432663cde4283fc7fa7f81b20bc3d0a9333b38 (diff) |
[ci] Run OSX package builds on master only once per day
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/ci/pipeline/osx-package.groovy | 8 | ||||
-rw-r--r-- | scripts/ci/pipeline/sdks-archive.groovy | 14 |
2 files changed, 15 insertions, 7 deletions
diff --git a/scripts/ci/pipeline/osx-package.groovy b/scripts/ci/pipeline/osx-package.groovy index b34b5f4d2ad..c24c60176ec 100644 --- a/scripts/ci/pipeline/osx-package.groovy +++ b/scripts/ci/pipeline/osx-package.groovy @@ -8,8 +8,12 @@ def isWindowsPrBuild = (isPr && env.ghprbCommentBody.contains("@monojenkins buil def packageFileName = null def commitHash = 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 { timestamps { diff --git a/scripts/ci/pipeline/sdks-archive.groovy b/scripts/ci/pipeline/sdks-archive.groovy index 92d9c87278c..a41f8beb6fb 100644 --- a/scripts/ci/pipeline/sdks-archive.groovy +++ b/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 ( "Android Darwin (Debug)": { @@ -61,9 +68,6 @@ parallel ( ) 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 packageFileSha1 = null def commitHash = null |