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:
63
ci/Jenkinsfile
vendored
63
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,45 +40,44 @@ fedoraBuild(architectures: ['amd64']) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
stage('Sign') {
|
stage('Sign') {
|
||||||
when {
|
when(BRANCH_NAME == 'main') {
|
||||||
branch 'main'
|
withEnvironment([
|
||||||
}
|
"GNUPGHOME=${env.WORKSPACE_TMP}/gnupg",
|
||||||
withEnvironment([
|
|
||||||
"GNUPGHOME=${env.WORKSPACE_TMP}/gnupg",
|
|
||||||
]) {
|
|
||||||
withCredentials([
|
|
||||||
file(
|
|
||||||
credentialsId: 'rpm-gpg-key',
|
|
||||||
variable: 'RPM_GPG_PRIVATE_KEY',
|
|
||||||
),
|
|
||||||
file(
|
|
||||||
credentialsId: 'rpm-gpg-key-passphrase',
|
|
||||||
variable: 'RPM_GPG_KEY_PASSPHRASE',
|
|
||||||
),
|
|
||||||
]) {
|
]) {
|
||||||
sh '. ci/sign.sh'
|
withCredentials([
|
||||||
|
file(
|
||||||
|
credentialsId: 'rpm-gpg-key',
|
||||||
|
variable: 'RPM_GPG_PRIVATE_KEY',
|
||||||
|
),
|
||||||
|
file(
|
||||||
|
credentialsId: 'rpm-gpg-key-passphrase',
|
||||||
|
variable: 'RPM_GPG_KEY_PASSPHRASE',
|
||||||
|
),
|
||||||
|
]) {
|
||||||
|
sh '. ci/sign.sh'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
archiveArtifacts '*.rpm'
|
archiveArtifacts '*.rpm'
|
||||||
|
|
||||||
stage('Publish') {
|
stage('Publish') {
|
||||||
when {
|
when(BRANCH_NAME == 'main') {
|
||||||
branch 'main'
|
container('build') {
|
||||||
}
|
sshagent(['jenkins-repohost']) {
|
||||||
container('build') {
|
sh '. ci/publish.sh'
|
||||||
sshagent(['jenkins-repohost']) {
|
}
|
||||||
sh '. ci/publish.sh'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (ex) {
|
|
||||||
emailext(
|
|
||||||
to: 'gyrfalcon@ebonfire.com',
|
|
||||||
subject: '$DEFAULT_SUBJECT',
|
|
||||||
body: '$DEFAULT_CONTENT',
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
} 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