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 {
|
try {
|
||||||
fedoraBuild(architectures: ['amd64']) {
|
fedoraBuild(architectures: ['amd64']) {
|
||||||
stage('Prepare') {
|
stage("Prepare f${fedoraVersion}/${arch}") {
|
||||||
checkout scm
|
checkout scm
|
||||||
|
|
||||||
container('build') {
|
container('build') {
|
||||||
@@ -28,7 +28,7 @@ try {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Build') {
|
stage("Build f${fedoraVersion}/${arch}") {
|
||||||
withCredentials([file(
|
withCredentials([file(
|
||||||
credentialsId: 'kmod-signing-cert',
|
credentialsId: 'kmod-signing-cert',
|
||||||
variable: 'SIGNING_KEY',
|
variable: 'SIGNING_KEY',
|
||||||
@@ -39,8 +39,8 @@ try {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Sign') {
|
stage("Sign f${fedoraVersion}/${arch}") {
|
||||||
if (BRANCH_NAME == 'main') {
|
when(BRANCH_NAME == 'main') {
|
||||||
withEnvironment([
|
withEnvironment([
|
||||||
"GNUPGHOME=${env.WORKSPACE_TMP}/gnupg",
|
"GNUPGHOME=${env.WORKSPACE_TMP}/gnupg",
|
||||||
]) {
|
]) {
|
||||||
@@ -57,20 +57,12 @@ try {
|
|||||||
sh '. ci/sign.sh'
|
sh '. ci/sign.sh'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
catchError(
|
|
||||||
catchInterruptions: false,
|
|
||||||
buildResult: null,
|
|
||||||
stageResult: 'NOT_BUILT',
|
|
||||||
) {
|
|
||||||
error('skip')
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
archiveArtifacts '*.rpm'
|
archiveArtifacts '*.rpm'
|
||||||
|
|
||||||
stage('Publish') {
|
stage("Publish f${fedoraVersion}/${arch}") {
|
||||||
when(BRANCH_NAME == 'main') {
|
when(BRANCH_NAME == 'main') {
|
||||||
container('build') {
|
container('build') {
|
||||||
sshagent(['jenkins-repohost']) {
|
sshagent(['jenkins-repohost']) {
|
||||||
|
|||||||
Reference in New Issue
Block a user