From 41dbad59210c970c8e7790e29a5d71960c7752dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=8B=D1=87=D0=BA=D0=BE=D0=B2=20=D0=90=D0=BD=D0=B4?= =?UTF-8?q?=D1=80=D0=B5=D0=B9?= Date: Thu, 9 Jun 2022 17:23:49 +0300 Subject: [PATCH] fix Jenkinsfile 4 --- Jenkinsfile | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) 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 {} -} +