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