From bde2c85591c40e9870eae64dd4df802789f5956c 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:12:51 +0300 Subject: [PATCH] fix Jenkinsfile 2 --- Jenkinsfile | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 3583e6b..a900e27 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -20,10 +20,6 @@ def build_docker(name, release_dir) { return "\n - ${image_name}" } node { - options { - copyArtifactPermission('*'); - buildDiscarder(logRotator(numToKeepStr: "20", artifactNumToKeepStr: "10")) - } stage("checkout") { checkout scm } @@ -53,3 +49,12 @@ node { archiveArtifacts 'release/*' echo "${_msg}" } +pipeline { + agent { + label 'master' + } + options { + copyArtifactPermission('*'); + buildDiscarder(logRotator(numToKeepStr: "20", artifactNumToKeepStr: "10")) + } +}