ci(pegasus): relax test agent placement

This commit is contained in:
codex 2026-05-20 04:25:51 -03:00
parent c7a6410837
commit 1a6397fca6

20
Jenkinsfile vendored
View File

@ -6,7 +6,7 @@ pipeline {
apiVersion: v1 apiVersion: v1
kind: Pod kind: Pod
spec: spec:
nodeSelector: {hardware: rpi5, kubernetes.io/arch: arm64, node-role.kubernetes.io/worker: "true"} nodeSelector: {kubernetes.io/arch: arm64, node-role.kubernetes.io/worker: "true"}
affinity: affinity:
nodeAffinity: nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution: requiredDuringSchedulingIgnoredDuringExecution:
@ -485,6 +485,7 @@ PY
post { post {
always { always {
script { script {
try {
if (fileExists('build/junit-backend.xml') || fileExists('build/junit-frontend.xml')) { if (fileExists('build/junit-backend.xml') || fileExists('build/junit-frontend.xml')) {
try { try {
junit allowEmptyResults: true, testResults: 'build/junit-backend.xml,build/junit-frontend.xml' junit allowEmptyResults: true, testResults: 'build/junit-backend.xml,build/junit-frontend.xml'
@ -492,8 +493,25 @@ PY
echo "junit step unavailable: ${err.class.simpleName}" echo "junit step unavailable: ${err.class.simpleName}"
} }
} }
} catch (Throwable err) {
if (err.class.simpleName == 'MissingContextVariableException') {
echo 'workspace unavailable; skipping junit publish'
} else {
throw err
} }
}
}
script {
try {
archiveArtifacts artifacts: 'build/**', allowEmptyArchive: true, fingerprint: true archiveArtifacts artifacts: 'build/**', allowEmptyArchive: true, fingerprint: true
} catch (Throwable err) {
if (err.class.simpleName == 'MissingContextVariableException') {
echo 'workspace unavailable; skipping artifact archive'
} else {
throw err
}
}
}
} }
} }
} }