fixup! wip: ci: use fedoraBuild
All checks were successful
RPMs/gasket-driver/pipeline/head This commit looks good
All checks were successful
RPMs/gasket-driver/pipeline/head This commit looks good
This commit is contained in:
17
ci/Jenkinsfile
vendored
17
ci/Jenkinsfile
vendored
@@ -18,8 +18,8 @@ properties([
|
||||
])
|
||||
])
|
||||
|
||||
fedoraBuild(architectures: ['amd64']) {
|
||||
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) {
|
||||
currentBuild.result = 'FAILED'
|
||||
emailext(
|
||||
to: 'gyrfalcon@ebonfire.com',
|
||||
subject: '$DEFAULT_SUBJECT',
|
||||
body: '$DEFAULT_CONTENT',
|
||||
)
|
||||
}
|
||||
throw ex
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user