atlas-iac/services/jenkins/lesavka-oceanus-jcasc.yaml

71 lines
2.8 KiB
YAML

# services/jenkins/lesavka-oceanus-jcasc.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: jenkins-jcasc
namespace: jenkins
data:
lesavka-oceanus.yaml: |
jenkins:
nodes:
- permanent:
name: lesavka-oceanus-compiler
remoteFS: /home/jenkins/agent
numExecutors: 1
mode: EXCLUSIVE
launcher:
inbound:
webSocket: true
- permanent:
name: lesavka-oceanus-tests
remoteFS: /home/jenkins/agent
numExecutors: 1
mode: EXCLUSIVE
launcher:
inbound:
webSocket: true
jobs:
- script: |
def driver = 'dc38c6754f2033b38c7fc8c15c38127f011ef7c2'
folder('lesavka-oceanus-review') {
description('Isolated release jobs on Oceanus. ARM publication requires native qualification.')
}
['compile','software-tests'].each { lane ->
pipelineJob('lesavka-oceanus-review/lesavka-' + lane) {
quietPeriod(0)
logRotator {
daysToKeep(14)
numToKeep(12)
artifactNumToKeep(4)
}
parameters {
stringParam('EXPECTED_SOURCE_REVISION', '', 'Full named product commit, available in the read-only source mirror.')
choiceParam('CI_DRIVER_REVISION', [driver], 'Reviewed Jenkins and build driver.')
if (lane == 'compile') {
choiceParam('BUILD_ARCH', ['amd64','arm64'], 'Native AMD64 or cross-compiled ARM64.')
stringParam('CI_WORKER_IMAGE', '', 'Optional target CI digest. Defaults to the reviewed image for the architecture.')
stringParam('SERVER_NATIVE_ALSA_SHA256', '', 'Reviewed optional ARM ALSA binding, supplied with the HEVC binding.')
stringParam('SERVER_NATIVE_HEVC_SHA256', '', 'Reviewed optional ARM HEVC binding, supplied with the ALSA binding.')
booleanParam('ARM_RUNTIME_AUTHORIZED', false, 'Enable a real ARM cluster check only after the release operator clears the hold.')
}
}
definition {
cpsScm {
scm {
git {
remote {
url('https://scm.bstein.dev/bstein/lesavka.git')
credentials('gitea-pat')
refspec('+' + driver + ':refs/remotes/origin/driver')
}
branches(driver)
extensions { cloneOptions { shallow(true); depth(1); noTags(true); honorRefspec(true) } }
}
}
scriptPath('docker/Jenkinsfile.' + lane)
lightweight(false)
}
}
}
}