diff --git a/Jenkinsfile b/Jenkinsfile index 0b1b40c74..9c0fde7f2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -71,7 +71,11 @@ def PROJECT_CONFIG = [ ] pipeline { - agent { label 'linux' } + agent any + options { + // 自动保留最近 3 次构建记录,或者保留最近 30 天的记录 + buildDiscarder(logRotator(numToKeepStr: '3', daysToKeepStr: '30')) + } parameters { choice(name: 'PROJECT_NAME', choices: ['chafangtong', 'fangjia', 'fangjiapds', 'fangjiastatic', 'geluke', 'fangjiaopen', 'fangjia-script'], description: '请选择发布的项目') }