From e9065402f2868e36353042acbc7d52abd7ea2cd9 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Tue, 15 Sep 2020 15:32:51 +0200 Subject: [PATCH] Update CI pipeline to release RCs --- ci/pipeline.yml | 43 ++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 42 insertions(+), 1 deletion(-) diff --git a/ci/pipeline.yml b/ci/pipeline.yml index 3671d4f21d..03306b58a5 100644 --- a/ci/pipeline.yml +++ b/ci/pipeline.yml @@ -358,10 +358,51 @@ jobs: ARTIFACTORY_SERVER: ((artifactory-server)) ARTIFACTORY_USERNAME: ((artifactory-username)) ARTIFACTORY_PASSWORD: ((artifactory-password)) +- name: stage-rc + serial: true + plan: + - get: spring-framework-ci-image + - get: git-repo + trigger: false + - task: stage + image: spring-framework-ci-image + file: git-repo/ci/tasks/stage-version.yml + params: + RELEASE_TYPE: RC + GRADLE_ENTERPRISE_ACCESS_KEY: ((gradle_enterprise_secret_access_key)) + GRADLE_ENTERPRISE_CACHE_USERNAME: ((gradle_enterprise_cache_user.username)) + GRADLE_ENTERPRISE_CACHE_PASSWORD: ((gradle_enterprise_cache_user.password)) + - put: artifactory-repo + params: + <<: *artifactory-params + repo: libs-staging-local + - put: git-repo + params: + repository: stage-git-repo +- name: promote-rc + serial: true + plan: + - get: spring-framework-ci-image + - get: git-repo + trigger: false + - get: artifactory-repo + trigger: false + passed: [stage-rc] + params: + download_artifacts: false + save_build_info: true + - task: promote + image: spring-framework-ci-image + file: git-repo/ci/tasks/promote-version.yml + params: + RELEASE_TYPE: RC + ARTIFACTORY_SERVER: ((artifactory-server)) + ARTIFACTORY_USERNAME: ((artifactory-username)) + ARTIFACTORY_PASSWORD: ((artifactory-password)) groups: - name: "Build" jobs: ["build", "jdk11-build", "jdk14-build", "jdk15-build"] - name: "Release" - jobs: ["stage-milestone", "promote-milestone"] + jobs: ["stage-milestone","stage-rc", "promote-milestone","promote-rc"] - name: "CI Images" jobs: ["build-spring-framework-ci-images"]