Compare commits

...

2 Commits

Author SHA1 Message Date
121472bc7c fixup! wip: ci: use fedoraBuild
All checks were successful
RPMs/gasket-driver/pipeline/head This commit looks good
2025-11-23 13:54:46 -06:00
eac90680e7 Revert "fixup! wip: ci: use fedoraBuild"
This reverts commit bfd826276d.
2025-11-23 13:32:14 -06:00

18
ci/Jenkinsfile vendored
View File

@@ -20,7 +20,7 @@ properties([
try { try {
fedoraBuild(architectures: ['amd64']) { fedoraBuild(architectures: ['amd64']) {
stage('Prepare') { stage("Prepare f${fedoraVersion}/${arch}") {
checkout scm checkout scm
container('build') { container('build') {
@@ -28,7 +28,7 @@ try {
} }
} }
stage('Build') { stage("Build f${fedoraVersion}/${arch}") {
withCredentials([file( withCredentials([file(
credentialsId: 'kmod-signing-cert', credentialsId: 'kmod-signing-cert',
variable: 'SIGNING_KEY', variable: 'SIGNING_KEY',
@@ -39,8 +39,8 @@ try {
} }
} }
stage('Sign') { stage("Sign f${fedoraVersion}/${arch}") {
if (BRANCH_NAME == 'main') { when(BRANCH_NAME == 'main') {
withEnvironment([ withEnvironment([
"GNUPGHOME=${env.WORKSPACE_TMP}/gnupg", "GNUPGHOME=${env.WORKSPACE_TMP}/gnupg",
]) { ]) {
@@ -57,20 +57,12 @@ try {
sh '. ci/sign.sh' sh '. ci/sign.sh'
} }
} }
} else {
catchError(
catchInterruptions: false,
buildResult: null,
stageResult: 'NOT_BUILT',
) {
error('skip')
}
} }
} }
archiveArtifacts '*.rpm' archiveArtifacts '*.rpm'
stage('Publish') { stage("Publish f${fedoraVersion}/${arch}") {
when(BRANCH_NAME == 'main') { when(BRANCH_NAME == 'main') {
container('build') { container('build') {
sshagent(['jenkins-repohost']) { sshagent(['jenkins-repohost']) {