From 14ec3d4f87633f87fc72e47a9163c1f624cec8eb Mon Sep 17 00:00:00 2001 From: Morgan McMillian Date: Thu, 9 Feb 2023 17:47:50 -0800 Subject: [PATCH] split build agent for ansible --- Jenkinsfile | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index b555288..124cd19 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,12 +1,13 @@ pipeline { - agent { - docker { - image 'git.dreamfall.space/thrrgilag/kiln:latest' - label 'docker-build' - } - } + agent none stages { stage('Build site') { + agent { + docker { + image 'git.dreamfall.space/thrrgilag/kiln:latest' + label 'docker-build' + } + } steps { mattermostSend "Site build started - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)" sh 'kiln build' @@ -21,6 +22,7 @@ pipeline { } } stage('Deploy site') { + agent { label 'docker-build' } steps { mattermostSend "Site deploy started - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)" ansiblePlaybook(