fixup! wip: ci: use fedoraBuild
All checks were successful
RPMs/gasket-driver/pipeline/head This commit looks good

This commit is contained in:
2025-11-23 12:55:40 -06:00
parent 49eff87281
commit 0ace925ec1

21
ci/Jenkinsfile vendored
View File

@@ -18,8 +18,8 @@ properties([
])
])
fedoraBuild(architectures: ['amd64']) {
try {
try {
fedoraBuild(architectures: ['amd64']) {
stage('Prepare') {
checkout scm
@@ -40,9 +40,7 @@ fedoraBuild(architectures: ['amd64']) {
}
stage('Sign') {
when {
branch 'main'
}
when(BRANCH_NAME == 'main') {
withEnvironment([
"GNUPGHOME=${env.WORKSPACE_TMP}/gnupg",
]) {
@@ -60,25 +58,26 @@ fedoraBuild(architectures: ['amd64']) {
}
}
}
}
archiveArtifacts '*.rpm'
stage('Publish') {
when {
branch 'main'
}
when(BRANCH_NAME == 'main') {
container('build') {
sshagent(['jenkins-repohost']) {
sh '. ci/publish.sh'
}
}
}
} catch (ex) {
}
}
} catch (ex) {
currentBuild.result = 'FAILED'
emailext(
to: 'gyrfalcon@ebonfire.com',
subject: '$DEFAULT_SUBJECT',
body: '$DEFAULT_CONTENT',
)
}
throw ex
}