Fix release pipeline for Maven Central publication

This commit fixes the missing pieces in our Maven Central publication
pipeline. Our first attempt at releasing with it showed a few problems:

* the promote task did not have the artifacts downladed with the
  artifactory repository
* we applied the wrong Sonatype credentials to the task
* the github changelog task would fail because of docker rate limiting
  since we were not using the right type of resource, which is
  configured with the proper caching mechanism

See gh-26654
This commit is contained in:
Brian Clozel 2021-03-16 11:14:29 +01:00
parent fd17738f76
commit 14a6909c4a
4 changed files with 7 additions and 7 deletions

View File

@ -14,7 +14,7 @@ rm -rf /var/lib/apt/lists/*
curl https://raw.githubusercontent.com/spring-io/concourse-java-scripts/v0.0.4/concourse-java.sh > /opt/concourse-java.sh curl https://raw.githubusercontent.com/spring-io/concourse-java-scripts/v0.0.4/concourse-java.sh > /opt/concourse-java.sh
curl --output /opt/concourse-release-scripts.jar https://repo.spring.io/release/io/spring/concourse/releasescripts/concourse-release-scripts/0.3.0/concourse-release-scripts-0.3.0.jar curl --output /opt/concourse-release-scripts.jar https://repo.spring.io/release/io/spring/concourse/releasescripts/concourse-release-scripts/0.3.1/concourse-release-scripts-0.3.1.jar
########################################################### ###########################################################
# JAVA # JAVA

View File

@ -9,8 +9,8 @@ anchors:
GRADLE_ENTERPRISE_CACHE_USERNAME: ((gradle_enterprise_cache_user.username)) GRADLE_ENTERPRISE_CACHE_USERNAME: ((gradle_enterprise_cache_user.username))
GRADLE_ENTERPRISE_CACHE_PASSWORD: ((gradle_enterprise_cache_user.password)) GRADLE_ENTERPRISE_CACHE_PASSWORD: ((gradle_enterprise_cache_user.password))
sonatype-task-params: &sonatype-task-params sonatype-task-params: &sonatype-task-params
SONATYPE_USER_TOKEN: ((sonatype-user-token)) SONATYPE_USERNAME: ((sonatype-username))
SONATYPE_PASSWORD_TOKEN: ((sonatype-user-token-password)) SONATYPE_PASSWORD: ((sonatype-password))
SONATYPE_URL: ((sonatype-url)) SONATYPE_URL: ((sonatype-url))
SONATYPE_STAGING_PROFILE_ID: ((sonatype-staging-profile-id)) SONATYPE_STAGING_PROFILE_ID: ((sonatype-staging-profile-id))
artifactory-task-params: &artifactory-task-params artifactory-task-params: &artifactory-task-params
@ -376,7 +376,7 @@ jobs:
trigger: false trigger: false
passed: [stage-release] passed: [stage-release]
params: params:
download_artifacts: false download_artifacts: true
save_build_info: true save_build_info: true
- task: promote - task: promote
image: ci-image image: ci-image

View File

@ -1,7 +1,7 @@
--- ---
platform: linux platform: linux
image_resource: image_resource:
type: docker-image type: registry-image
source: source:
repository: springio/github-changelog-generator repository: springio/github-changelog-generator
tag: '0.0.6' tag: '0.0.6'

View File

@ -10,8 +10,8 @@ params:
ARTIFACTORY_SERVER: ARTIFACTORY_SERVER:
ARTIFACTORY_USERNAME: ARTIFACTORY_USERNAME:
ARTIFACTORY_PASSWORD: ARTIFACTORY_PASSWORD:
SONATYPE_USER_TOKEN: SONATYPE_USER:
SONATYPE_PASSWORD_TOKEN: SONATYPE_PASSWORD:
SONATYPE_URL: SONATYPE_URL:
SONATYPE_STAGING_PROFILE_ID: SONATYPE_STAGING_PROFILE_ID:
run: run: