ci(pegasus): relax test agent placement

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

32
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,15 +485,33 @@ PY
post { post {
always { always {
script { script {
if (fileExists('build/junit-backend.xml') || fileExists('build/junit-frontend.xml')) { try {
try { if (fileExists('build/junit-backend.xml') || fileExists('build/junit-frontend.xml')) {
junit allowEmptyResults: true, testResults: 'build/junit-backend.xml,build/junit-frontend.xml' try {
} catch (Throwable err) { junit allowEmptyResults: true, testResults: 'build/junit-backend.xml,build/junit-frontend.xml'
echo "junit step unavailable: ${err.class.simpleName}" } catch (Throwable err) {
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
} catch (Throwable err) {
if (err.class.simpleName == 'MissingContextVariableException') {
echo 'workspace unavailable; skipping artifact archive'
} else {
throw err
} }
} }
} }
archiveArtifacts artifacts: 'build/**', allowEmptyArchive: true, fingerprint: true
} }
} }
} }