[colobot] 70/100: Jenkinsfile: Don't keep artifacts for old PR builds
Didier Raboud
odyx at moszumanska.debian.org
Thu Jun 1 18:10:20 UTC 2017
This is an automated email from the git hooks/post-receive script.
odyx pushed a commit to branch debian/master
in repository colobot.
commit 44d18b77becd775765403efa07a01c101ce4c4ed
Author: krzys-h <krzys_h at interia.pl>
Date: Sun May 21 20:40:03 2017 +0200
Jenkinsfile: Don't keep artifacts for old PR builds
---
Jenkinsfile | 6 +++++-
data | 2 +-
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index 8676dbe..2d1b76c 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -1,5 +1,9 @@
#!/usr/bin/env groovy
-properties([[$class: 'BuildDiscarderProperty', strategy: [$class: 'LogRotator', artifactDaysToKeepStr: '30', artifactNumToKeepStr: '20']]])
+if (env.BRANCH_NAME.startsWith('PR-')) {
+ properties([[$class: 'BuildDiscarderProperty', strategy: [$class: 'LogRotator', artifactNumToKeepStr: '1']]])
+} else {
+ properties([[$class: 'BuildDiscarderProperty', strategy: [$class: 'LogRotator', artifactDaysToKeepStr: '30', artifactNumToKeepStr: '20']]])
+}
node('master') {
stage('Pull changes') {
diff --git a/data b/data
index 4df6d98..d54f880 160000
--- a/data
+++ b/data
@@ -1 +1 @@
-Subproject commit 4df6d989881d6b00944fbcbe6141f6426dc04e40
+Subproject commit d54f880e5e8cab3d815f6ad1e5312e7159980180
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/colobot.git
More information about the Pkg-games-commits
mailing list