fix(CI): set build agent based on stage
Some checks failed
gitea-sync/antos/pipeline/head There was a failure building this commit

This commit is contained in:
DanyLE 2024-03-10 23:59:09 +01:00
parent 43347010a8
commit a29325781f

30
Jenkinsfile vendored
View File

@ -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