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")) + } +}