From 21264e0d2a03d8912e651f7d01d7882be9b48b85 Mon Sep 17 00:00:00 2001 From: F Date: Sat, 28 Nov 2026 19:03:12 +0100 Subject: [PATCH] ci(jenkins): build Architecture: all packages on any executor The template pinned every distro branch to node('arm64'), i.e. the single arm64 drone (boys.vitexsoftware.brevnov.czf, 8 GB RAM), so builds of architecture-independent packages queued with "Waiting for next available executor on arm64" while the built-in node (10 slots) and Kubernetes executors were idle. After the SCM checkout (now on any node) the Architecture fields of debian/control are read; when they are all "all", the distro branches run on any executor (onBuildNode helper), otherwise they keep node('arm64'). Node-local isolation is unchanged: nodeLocalRoot() falls back to $HOME/local-builds, off the shared NFS workspace export. Co-Authored-By: Claude Opus 5.5 --- Test/Jenkinsfile | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/Test/Jenkinsfile b/Test/Jenkinsfile index 4f3a7f6..b324a6c 100644 --- a/Test/Jenkinsfile +++ b/Test/Jenkinsfile @@ -178,8 +178,21 @@ properties([ ) ]) +// Packages that are Architecture: all only are built on any executor (built-in +// node with its many slots, or Kubernetes executors); waiting for the single +// arm64 drone gains nothing for them. Anything architecture-dependent keeps +// the arm64 pin. +def onBuildNode(String label, Closure body) { + if (label) { + node(label) { body() } + } else { + node { body() } + } +} + def scmVars = [:] -node('arm64') { +String buildLabel = 'arm64' +node() { ansiColor('xterm') { stage('SCM Checkout') { // Run the one github.com checkout of this build on node-local disk, @@ -193,6 +206,12 @@ node('arm64') { // never contact github.com again on this node. scmVars = checkout scm seedNodeMirror(root, scmVars.GIT_URL, scmVars.GIT_COMMIT, pwd()) + def archs = sh( + script: "awk '/^Architecture:/ { for (i = 2; i <= NF; i++) print \$i }' debian/control | sort -u", + returnStdout: true + ).trim() + buildLabel = (archs == 'all') ? '' : 'arm64' + println "Architectures: ${archs.replace('\n', ' ')} -> build node: ${buildLabel ?: 'any executor'}" } } } @@ -214,7 +233,7 @@ distributions.each { distro -> def artifacts = [] def buildVer = '' - node('arm64') { + onBuildNode(buildLabel) { ansiColor('xterm') { def root = nodeLocalRoot() def buildId = localBuildId(distroCode)