ci(pegasus): keep Jenkinsfile under loc gate

This commit is contained in:
codex 2026-05-10 03:54:12 -03:00
parent 47db2fc87d
commit 13bf0a64dd

44
Jenkinsfile vendored
View File

@ -6,73 +6,48 @@ pipeline {
apiVersion: v1
kind: Pod
spec:
nodeSelector:
hardware: rpi5
kubernetes.io/arch: arm64
node-role.kubernetes.io/worker: "true"
nodeSelector: {hardware: rpi5, kubernetes.io/arch: arm64, node-role.kubernetes.io/worker: "true"}
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: NotIn
values:
- titan-06
- {key: kubernetes.io/hostname, operator: NotIn, values: [titan-06]}
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
preference:
matchExpressions:
- key: kubernetes.io/hostname
operator: NotIn
values:
- titan-13
- titan-15
- titan-17
- titan-19
- {key: kubernetes.io/hostname, operator: NotIn, values: [titan-13, titan-15, titan-17, titan-19]}
topologySpreadConstraints:
- maxSkew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: ScheduleAnyway
labelSelector:
matchLabels:
jenkins/jenkins-jenkins-agent: "true"
labelSelector: {matchLabels: {jenkins/jenkins-jenkins-agent: "true"}}
containers:
- name: go-tester
image: registry.bstein.dev/bstein/golang:1.22-bookworm
command: ["cat"]
tty: true
volumeMounts:
- name: workspace-volume
mountPath: /home/jenkins/agent
volumeMounts: [{name: workspace-volume, mountPath: /home/jenkins/agent}]
- name: node-tester
image: registry.bstein.dev/bstein/node:20-bookworm
command: ["cat"]
tty: true
volumeMounts:
- name: workspace-volume
mountPath: /home/jenkins/agent
volumeMounts: [{name: workspace-volume, mountPath: /home/jenkins/agent}]
- name: publisher
image: registry.bstein.dev/bstein/python:3.12-slim
command: ["cat"]
tty: true
volumeMounts:
- name: workspace-volume
mountPath: /home/jenkins/agent
volumeMounts: [{name: workspace-volume, mountPath: /home/jenkins/agent}]
- name: quality-tools
image: registry.bstein.dev/bstein/quality-tools:sonar8.0.1-trivy0.70.0-db20260422-arm64
command: ["cat"]
tty: true
volumeMounts:
- name: workspace-volume
mountPath: /home/jenkins/agent
volumes:
- name: workspace-volume
emptyDir: {}
volumeMounts: [{name: workspace-volume, mountPath: /home/jenkins/agent}]
volumes: [{name: workspace-volume, emptyDir: {}}]
"""
}
}
environment {
SUITE_NAME = 'pegasus'
PUSHGATEWAY_URL = 'http://platform-quality-gateway.monitoring.svc.cluster.local:9091'
@ -85,7 +60,6 @@ spec:
QUALITY_GATE_IRONBANK_REQUIRED = '0'
QUALITY_GATE_IRONBANK_REPORT = 'build/ironbank-compliance.json'
}
options {
disableConcurrentBuilds()
buildDiscarder(logRotator(daysToKeepStr: '30', numToKeepStr: '200', artifactDaysToKeepStr: '30', artifactNumToKeepStr: '120'))