Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Köplinger <alex.koeplinger@outlook.com>2019-07-31 01:34:30 +0300
committerAlexander Köplinger <alex.koeplinger@outlook.com>2019-07-31 01:34:38 +0300
commit2cfbadb0a65a63eedb73f19de62d530ba49daac1 (patch)
tree2bb9662f4b9b4da22c6a9cf4b51c85c78bc16a44 /scripts
parent60bb726eac6d33038d35c27b23f98c73ff5abc4d (diff)
[pkg] Don't keep per-commit master builds in CI
We only want the daily builds.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/ci/pipeline/osx-package.groovy6
-rw-r--r--scripts/ci/pipeline/sdks-archive.groovy2
2 files changed, 6 insertions, 2 deletions
diff --git a/scripts/ci/pipeline/osx-package.groovy b/scripts/ci/pipeline/osx-package.groovy
index c6cbfec3544..c0e2dc184f2 100644
--- a/scripts/ci/pipeline/osx-package.groovy
+++ b/scripts/ci/pipeline/osx-package.groovy
@@ -11,7 +11,8 @@ utils = null
if (monoBranch == 'master') {
properties([ /* compressBuildLog() */ // compression is incompatible with JEP-210 right now
- pipelineTriggers([cron('0 3 * * *')])
+ pipelineTriggers([cron('0 3 * * *')]),
+ buildDiscarder(logRotator(numToKeepStr: '1')) // delete skipped builds
])
// multi-branch pipelines still get triggered for each commit, skip these builds on master by checking whether this build was timer-triggered
@@ -19,6 +20,9 @@ if (monoBranch == 'master') {
echo "Skipping per-commit build on master."
return
}
+
+ // make sure this build isn't deleted by logRotator
+ currentBuild.setKeepLog(true)
}
try {
diff --git a/scripts/ci/pipeline/sdks-archive.groovy b/scripts/ci/pipeline/sdks-archive.groovy
index 0b03cf55cae..fbf6410b6cd 100644
--- a/scripts/ci/pipeline/sdks-archive.groovy
+++ b/scripts/ci/pipeline/sdks-archive.groovy
@@ -7,7 +7,7 @@ azureContainerName = (xcode11 ? "mono-sdks-xcode11" : "mono-sdks")
if (monoBranch == 'master') {
properties([ /* compressBuildLog() */ // compression is incompatible with JEP-210 right now
pipelineTriggers([cron('0 3 * * *')]),
- buildDiscarder(logRotator(numToKeepStr: '0')) // delete skipped builds
+ buildDiscarder(logRotator(numToKeepStr: '1')) // delete skipped builds
])
// multi-branch pipelines still get triggered for each commit, skip these builds on master by checking whether this build was timer-triggered