From f72b3fe1406bf12c924502d24a6737ab3ba02199 Mon Sep 17 00:00:00 2001 From: Martin Nowak Date: Thu, 9 Mar 2017 18:34:50 +0100 Subject: [PATCH] run pipeline outside of node block - to avoid executor startvation, see Dicebot/dlangci#30 --- Jenkinsfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index eb9fbdedab..aad543ddce 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -12,9 +12,11 @@ def clone (repo_url, git_ref = "master") { ) } +def pipeline node { dir('dlang/ci') { - clone 'https://github.com/Dicebot/dlangci.git' + cleanCheckout 'https://github.com/Dicebot/dlangci.git', 'master' } - load 'dlang/ci/pipeline.groovy' + pipeline = load 'dlang/ci/pipeline.groovy' } +pipeline.runPipeline()