Skip to content

Commit

Permalink
[10.0.x] NO-ISSUE: Release jobs adjustments for the Apache 10 release (
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigonull committed Sep 18, 2024
1 parent 56a0497 commit 3514977
Show file tree
Hide file tree
Showing 7 changed files with 124 additions and 398 deletions.
2 changes: 1 addition & 1 deletion .ci/jenkins/Jenkinsfile.daily-dev-publish
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ pipeline {
steps {
dir('kie-tools') {
script {
withCredentials([usernamePassword(credentialsId: "${pipelineVars.mavenDeployRepositoryCredentialsId}", usernameVariable: 'REPOSITORY_USER', passwordVariable: 'REPOSITORY_TOKEN')]) {
withCredentials([usernamePassword(credentialsId: "${pipelineVars.mavenDeploySnapshotsCredentialsId}", usernameVariable: 'REPOSITORY_USER', passwordVariable: 'REPOSITORY_TOKEN')]) {
configFileProvider([configFile(fileId: "${pipelineVars.mavenSettingsConfigFileId}", variable: 'MAVEN_SETTINGS_FILE')]) {
sh """#!/bin/bash -el
export KIE_TOOLS_BUILD__mavenDeploySkip=false
Expand Down
2 changes: 1 addition & 1 deletion .ci/jenkins/Jenkinsfile.weekly-publish
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ pipeline {
steps {
dir('kie-tools') {
script {
withCredentials([usernamePassword(credentialsId: "${pipelineVars.mavenDeployRepositoryCredentialsId}", usernameVariable: 'REPOSITORY_USER', passwordVariable: 'REPOSITORY_TOKEN')]) {
withCredentials([usernamePassword(credentialsId: "${pipelineVars.mavenDeploySnapshotsCredentialsId}", usernameVariable: 'REPOSITORY_USER', passwordVariable: 'REPOSITORY_TOKEN')]) {
configFileProvider([configFile(fileId: "${pipelineVars.mavenSettingsConfigFileId}", variable: 'MAVEN_SETTINGS_FILE')]) {
timestampedSnapshotVersion = getTimestampedSnapshotVersion()
sh """#!/bin/bash -el
Expand Down
2 changes: 1 addition & 1 deletion .ci/jenkins/release-jobs/Jenkinsfile.jbpm-quarkus-devui
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ pipeline {
if (params.DRY_RUN) {
env.KIE_TOOLS_BUILD__mavenDeploySkip = 'true'
}
withCredentials([usernamePassword(credentialsId: "${pipelineVars.mavenDeployRepositoryCredentialsId}", usernameVariable: 'REPOSITORY_USER', passwordVariable: 'REPOSITORY_TOKEN')]) {
withCredentials([usernamePassword(credentialsId: "${pipelineVars.mavenDeployStagingCredentialsId}", usernameVariable: 'REPOSITORY_USER', passwordVariable: 'REPOSITORY_TOKEN')]) {
configFileProvider([configFile(fileId: "${pipelineVars.mavenSettingsConfigFileId}", variable: 'MAVEN_SETTINGS_FILE')]) {
sh """#!/bin/bash -el
pnpm ${env.PNPM_FILTER_STRING} exec 'bash' '-c' 'echo -e "\n--settings=${MAVEN_SETTINGS_FILE}" >> .mvn/maven.config'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ pipeline {
if (params.DRY_RUN) {
env.KIE_TOOLS_BUILD__mavenDeploySkip = 'true'
}
withCredentials([usernamePassword(credentialsId: "${pipelineVars.mavenDeployRepositoryCredentialsId}", usernameVariable: 'REPOSITORY_USER', passwordVariable: 'REPOSITORY_TOKEN')]) {
withCredentials([usernamePassword(credentialsId: "${pipelineVars.mavenDeployStagingCredentialsId}", usernameVariable: 'REPOSITORY_USER', passwordVariable: 'REPOSITORY_TOKEN')]) {
configFileProvider([configFile(fileId: "${pipelineVars.mavenSettingsConfigFileId}", variable: 'MAVEN_SETTINGS_FILE')]) {
sh """#!/bin/bash -el
pnpm ${env.PNPM_FILTER_STRING} exec 'bash' '-c' 'echo -e "\n--settings=${MAVEN_SETTINGS_FILE}" >> .mvn/maven.config'
Expand Down
7 changes: 4 additions & 3 deletions .ci/jenkins/shared-scripts/pipelineVars.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,12 @@ class PipelineVars implements Serializable {
String asfGithubPushCredentialsId = '84811880-2025-45b6-a44c-2f33bef30ad2'
String asfGithubTokenPushCredentialsId = '41128c14-bb63-4708-9074-d20a318ee630'
String mavenSettingsConfigFileId = 'kie-release-settings'
String mavenDeployRepositoryCredentialsId = 'apache-nexus-kie-deploy-credentials'
String mavenDeploySnapshotsCredentialsId = 'apache-nexus-kie-deploy-credentials'
String mavenDeployStagingCredentialsId = 'jenkins-deploy-to-nexus-staging'
String defaultArtifactsTempDir = 'artifacts-tmp'
String asfReleaseStagingRepository = 'https://dist.apache.org/repos/dist/dev/incubator/kie'
String asfReleaseGPGKeyCredentialsId = 'GPG_KEY'
String asfReleaseSVNStagingCredentialsId = 'kie-dist-acct'
String asfReleaseGPGKeyCredentialsId = 'GPG_KEY_FILE'
String asfReleaseSVNStagingCredentialsId = 'kie-svn-credentials'
String kieToolsCiBuildImageRegistry = 'docker.io'
String kieToolsCiBuildImageAccount = 'apache'
String kieToolsCiBuildImageName = 'incubator-kie-tools-ci-build'
Expand Down
10 changes: 4 additions & 6 deletions .ci/jenkins/shared-scripts/releaseUtils.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,8 @@
def setupSigningKey(String gpgKeyCredentialsId) {
withCredentials([file(credentialsId: gpgKeyCredentialsId, variable: 'SIGNING_KEY')]) {
sh """#!/bin/bash -el
echo "${SIGNING_KEY}" > ${WORKSPACE}/signkey.gpg
gpg --list-keys
gpg --batch --pinentry-mode loopback --import ${WORKSPACE}/signkey.gpg
rm ${WORKSPACE}/signkey.gpg
gpg --batch --pinentry-mode=loopback --import $SIGNING_KEY
""".trim()
}
}
Expand All @@ -45,10 +43,10 @@ def signArtifact(String artifactFileName) {
def publishArtifacts(String artifactsDir, String releaseRepository, String releaseVersion, String credentialsId) {
withCredentials([usernamePassword(credentialsId: credentialsId, usernameVariable: 'ASF_USERNAME', passwordVariable: 'ASF_PASSWORD')]) {
sh """#!/bin/bash -el
svn co --depth=empty ${releaseRepository} svn-kie
cp ${artifactsDir}/* svn-kie/${releaseVersion}/
svn add "svn-kie/${releaseVersion}"
svn co --depth=empty ${releaseRepository}/${releaseVersion} svn-kie
cp ${artifactsDir}/* svn-kie
cd svn-kie
svn add . --force
svn ci --non-interactive --no-auth-cache --username ${ASF_USERNAME} --password '${ASF_PASSWORD}' -m "Apache KIE ${releaseVersion} artifacts"
rm -rf svn-kie
""".trim()
Expand Down
Loading

0 comments on commit 3514977

Please sign in to comment.