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 { pipeline {
agent { agent {
docker { agent {
image 'xsangle/ci-tools:latest' node { label'master' }
reuseNode true
args ' --device /dev/fuse --privileged '
} }
} }
options { options {
@ -40,6 +38,13 @@ pipeline {
} }
} }
stage('Build AMD64)') { stage('Build AMD64)') {
agent {
docker {
image 'xsangle/ci-tools:latest'
reuseNode true
args ' --device /dev/fuse --privileged '
}
}
steps { steps {
sh''' sh'''
DESTDIR=$(realpath build) \ DESTDIR=$(realpath build) \
@ -51,6 +56,13 @@ pipeline {
} }
} }
stage('Build ARM64)') { stage('Build ARM64)') {
agent {
docker {
image 'xsangle/ci-tools:latest'
reuseNode true
args ' --device /dev/fuse --privileged '
}
}
steps { steps {
sh''' sh'''
DESTDIR=$(realpath build) \ DESTDIR=$(realpath build) \
@ -62,6 +74,13 @@ pipeline {
} }
} }
stage('Build ARM)') { stage('Build ARM)') {
agent {
docker {
image 'xsangle/ci-tools:latest'
reuseNode true
args ' --device /dev/fuse --privileged '
}
}
steps { steps {
sh''' sh'''
DESTDIR=$(realpath build) \ DESTDIR=$(realpath build) \
@ -73,6 +92,9 @@ pipeline {
} }
} }
stage('Checking build)') { stage('Checking build)') {
agent {
node { label'workstation' }
}
steps { steps {
sh''' sh'''
./scripts/ckarch.sh build ./scripts/ckarch.sh build