wip: ci: use fedoraBuild
Some checks failed
RPMs/gasket-driver/pipeline/head There was a failure building this commit

This commit is contained in:
2025-11-23 11:42:55 -06:00
parent 2684e4b814
commit 4a4295e1a2

60
ci/Jenkinsfile vendored
View File

@@ -1,7 +1,7 @@
pipeline {
agent none
@Library('dch@fedora')_
triggers {
properties([
pipelineTriggers([
GenericTrigger(
causeString: 'Webhook Trigger',
genericVariables: [[
@@ -15,43 +15,23 @@ pipeline {
silentResponse: true,
tokenCredentialId: 'webhook-trigger',
)
}
])
])
stages {
stage('RPM') {
matrix {
axes {
axis {
name 'FEDORA'
values '41', '42'
}
}
agent {
kubernetes {
yamlFile 'ci/podTemplate.yaml'
yamlMergeStrategy merge()
defaultContainer 'fedora'
containerTemplate {
name 'fedora'
image "registry.fedoraproject.org/fedora:${FEDORA}"
}
}
}
stages {
fedoraBuild {
try {
stage('Prepare') {
steps {
container('build') {
sh '. ci/prepare.sh'
}
}
stage('Build') {
steps {
withCredentials([file(
credentialsId: 'kmod-signing-cert',
variable: 'SIGNING_KEY',
)]) {
container('build') {
sh '. ci/build.sh'
}
}
@@ -61,10 +41,9 @@ pipeline {
when {
branch 'main'
}
environment {
GNUPGHOME = "${env.WORKSPACE_TMP}/gnupg"
}
steps {
withEnvironment([
"GNUPGHOME="${env.WORKSPACE_TMP}/gnupg",
]) {
withCredentials([
file(
credentialsId: 'rpm-gpg-key',
@@ -80,30 +59,20 @@ pipeline {
}
}
stage('Archive') {
steps {
archiveArtifacts '*.rpm'
}
}
stage('Publish') {
when {
branch 'main'
}
steps {
container('build') {
sshagent(['jenkins-repohost']) {
sh '. ci/publish.sh'
}
}
}
}
}
}
}
post {
failure {
} catch (ex) {
emailext(
to: 'gyrfalcon@ebonfire.com',
subject: '$DEFAULT_SUBJECT',
@@ -111,4 +80,3 @@ pipeline {
)
}
}
}