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:
8
ci/Jenkinsfile
vendored
8
ci/Jenkinsfile
vendored
@@ -20,7 +20,7 @@ properties([
|
||||
|
||||
try {
|
||||
fedoraBuild(architectures: ['amd64']) {
|
||||
stage('Prepare') {
|
||||
stage("Prepare f${fedoraVersion}/${arch}") {
|
||||
checkout scm
|
||||
|
||||
container('build') {
|
||||
@@ -28,7 +28,7 @@ try {
|
||||
}
|
||||
}
|
||||
|
||||
stage('Build') {
|
||||
stage("Build f${fedoraVersion}/${arch}") {
|
||||
withCredentials([file(
|
||||
credentialsId: 'kmod-signing-cert',
|
||||
variable: 'SIGNING_KEY',
|
||||
@@ -39,7 +39,7 @@ try {
|
||||
}
|
||||
}
|
||||
|
||||
stage('Sign') {
|
||||
stage("Sign f${fedoraVersion}/${arch}") {
|
||||
when(BRANCH_NAME == 'main') {
|
||||
withEnvironment([
|
||||
"GNUPGHOME=${env.WORKSPACE_TMP}/gnupg",
|
||||
@@ -62,7 +62,7 @@ try {
|
||||
|
||||
archiveArtifacts '*.rpm'
|
||||
|
||||
stage('Publish') {
|
||||
stage("Publish f${fedoraVersion}/${arch}") {
|
||||
when(BRANCH_NAME == 'main') {
|
||||
container('build') {
|
||||
sshagent(['jenkins-repohost']) {
|
||||
|
||||
Reference in New Issue
Block a user