From a29325781f58b68c1b6f1b2d0555b0ca9e27514a Mon Sep 17 00:00:00 2001 From: DanyLE Date: Sun, 10 Mar 2024 23:59:09 +0100 Subject: [PATCH] fix(CI): set build agent based on stage --- Jenkinsfile | 30 ++++++++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 8e8da14..7273563 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,9 +1,7 @@ pipeline { agent { - docker { - image 'xsangle/ci-tools:latest' - reuseNode true - args ' --device /dev/fuse --privileged ' + agent { + node { label'master' } } } options { @@ -40,6 +38,13 @@ pipeline { } } stage('Build AMD64)') { + agent { + docker { + image 'xsangle/ci-tools:latest' + reuseNode true + args ' --device /dev/fuse --privileged ' + } + } steps { sh''' DESTDIR=$(realpath build) \ @@ -51,6 +56,13 @@ pipeline { } } stage('Build ARM64)') { + agent { + docker { + image 'xsangle/ci-tools:latest' + reuseNode true + args ' --device /dev/fuse --privileged ' + } + } steps { sh''' DESTDIR=$(realpath build) \ @@ -62,6 +74,13 @@ pipeline { } } stage('Build ARM)') { + agent { + docker { + image 'xsangle/ci-tools:latest' + reuseNode true + args ' --device /dev/fuse --privileged ' + } + } steps { sh''' DESTDIR=$(realpath build) \ @@ -73,6 +92,9 @@ pipeline { } } stage('Checking build)') { + agent { + node { label'workstation' } + } steps { sh''' ./scripts/ckarch.sh build