Skip to content

Commit

Permalink
kie-issues#1387: Adjust pipelines to use the gpg key provided by Apac…
Browse files Browse the repository at this point in the history
…he to sign the artifacts (#3109)

Adjust pipelines to use the gpg key provided by Apache to sign the artifacts
  • Loading branch information
rodrigonull authored Jul 16, 2024
1 parent 662c2f8 commit 8d20638
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
11 changes: 3 additions & 8 deletions .ci/jenkins/Jenkinsfile.deploy
Original file line number Diff line number Diff line change
Expand Up @@ -150,14 +150,9 @@ pipeline {
}
}
if (isRelease()) {
release.gpgImportKeyFromFileWithPassword(getReleaseGpgSignKeyCredsId(), getReleaseGpgSignPassphraseCredsId())
withCredentials([string(credentialsId: getReleaseGpgSignPassphraseCredsId(), variable: 'SIGNING_KEY_PASSWORD')]) {
mavenCommand.withProperty('gpg.passphrase', SIGNING_KEY_PASSWORD)
mavenCommand.withProfiles(['apache-release'])

mavenRunClosure()
}
}
release.gpgImportKeyFromStringWithoutPassword(getReleaseGpgSignKeyCredsId())
mavenCommand.withProfiles(['apache-release'])
mavenRunClosure()
} else {
mavenRunClosure()
}
Expand Down
4 changes: 2 additions & 2 deletions .ci/jenkins/config/branch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ cloud:
release:
gpg:
sign:
key-credentials-id: 'asf-release-gpg-signing-key'
passphrase-credentials-id: 'asf-release-gpg-signing-key-passphrase'
key-credentials-id: 'GPG_KEY'
passphrase-credentials-id: ''
jenkins:
email_creds_id: OPTAPLANNER_CI_NOTIFICATION_EMAILS
agent:
Expand Down
2 changes: 1 addition & 1 deletion .ci/jenkins/config/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@ jenkins:
# At some point, this image will need to be changed when a release branch is created
# but we need to make sure the image exists first ... simple tag before setting up the branch ?
# See https://github.com/kiegroup/kie-issues/issues/551
image: quay.io/kiegroup/kogito-ci-build:main-latest
image: docker.io/apache/incubator-kie-kogito-ci-build:main-latest
args: --privileged --group-add docker

0 comments on commit 8d20638

Please sign in to comment.