diff --git a/Jenkinsfile b/Jenkinsfile index ad70845..5547efe 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -19,6 +19,7 @@ def build_docker(name, release_dir) { } return "\n - ${image_name}" } +properties([[$class: 'BuildDiscarderProperty', strategy: [$class: 'LogRotator', artifactDaysToKeepStr: '', artifactNumToKeepStr: '10', daysToKeepStr: '', numToKeepStr: '20']], copyArtifactPermission('*')]); node { stage("checkout") { checkout scm @@ -49,13 +50,4 @@ node { archiveArtifacts 'release/*' echo "${_msg}" } -pipeline { - agent { - label 'master' - } - options { - copyArtifactPermission('*'); - buildDiscarder(logRotator(numToKeepStr: "20", artifactNumToKeepStr: "10")) - } - stages {} -} +