Compare commits
2 Commits
bfd826276d
...
121472bc7c
| Author | SHA1 | Date | |
|---|---|---|---|
| 121472bc7c | |||
| eac90680e7 |
18
ci/Jenkinsfile
vendored
18
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,8 +39,8 @@ try {
|
||||
}
|
||||
}
|
||||
|
||||
stage('Sign') {
|
||||
if (BRANCH_NAME == 'main') {
|
||||
stage("Sign f${fedoraVersion}/${arch}") {
|
||||
when(BRANCH_NAME == 'main') {
|
||||
withEnvironment([
|
||||
"GNUPGHOME=${env.WORKSPACE_TMP}/gnupg",
|
||||
]) {
|
||||
@@ -57,20 +57,12 @@ try {
|
||||
sh '. ci/sign.sh'
|
||||
}
|
||||
}
|
||||
} else {
|
||||
catchError(
|
||||
catchInterruptions: false,
|
||||
buildResult: null,
|
||||
stageResult: 'NOT_BUILT',
|
||||
) {
|
||||
error('skip')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
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