diff --git a/ci/pipeline.yml b/ci/pipeline.yml index 4fc3c24031..9a3bfe3e95 100644 --- a/ci/pipeline.yml +++ b/ci/pipeline.yml @@ -312,7 +312,6 @@ jobs: - get: spring-boot-ci-image - get: git-repo trigger: false - - get: release-notes-repo - task: stage image: spring-boot-ci-image file: git-repo/ci/tasks/stage.yml @@ -325,22 +324,12 @@ jobs: - put: git-repo params: repository: stage-git-repo - - task: publish-release-notes - image: spring-boot-ci-image - file: git-repo/ci/tasks/publish-release-notes.yml - params: - RELEASE_TYPE: M - GITHUB_ORGANIZATION: spring-projects - GITHUB_REPO: spring-boot - GITHUB_USERNAME: ((github-username)) - GITHUB_PASSWORD: ((github-release-notes-access-token)) - name: stage-rc serial: true plan: - get: spring-boot-ci-image - get: git-repo trigger: false - - get: release-notes-repo - task: stage image: spring-boot-ci-image file: git-repo/ci/tasks/stage.yml @@ -353,22 +342,12 @@ jobs: - put: git-repo params: repository: stage-git-repo - - task: publish-release-notes - image: spring-boot-ci-image - file: git-repo/ci/tasks/publish-release-notes.yml - params: - RELEASE_TYPE: RC - GITHUB_ORGANIZATION: spring-projects - GITHUB_REPO: spring-boot - GITHUB_USERNAME: ((github-username)) - GITHUB_PASSWORD: ((github-release-notes-access-token)) - name: stage-release serial: true plan: - get: spring-boot-ci-image - get: git-repo trigger: false - - get: release-notes-repo - task: stage image: spring-boot-ci-image file: git-repo/ci/tasks/stage.yml @@ -381,21 +360,13 @@ jobs: - put: git-repo params: repository: stage-git-repo - - task: publish-release-notes - image: spring-boot-ci-image - file: git-repo/ci/tasks/publish-release-notes.yml - params: - RELEASE_TYPE: RELEASE - GITHUB_ORGANIZATION: spring-projects - GITHUB_REPO: spring-boot - GITHUB_USERNAME: ((github-username)) - GITHUB_PASSWORD: ((github-release-notes-access-token)) - name: promote-milestone serial: true plan: - get: spring-boot-ci-image - get: git-repo trigger: false + - get: release-notes-repo - get: artifactory-repo trigger: false passed: [stage-milestone] @@ -409,12 +380,22 @@ jobs: ARTIFACTORY_SERVER: ((artifactory-server)) ARTIFACTORY_USERNAME: ((artifactory-username)) ARTIFACTORY_PASSWORD: ((artifactory-password)) + - task: publish-release-notes + image: spring-boot-ci-image + file: git-repo/ci/tasks/publish-release-notes.yml + params: + RELEASE_TYPE: M + GITHUB_ORGANIZATION: spring-projects + GITHUB_REPO: spring-boot + GITHUB_USERNAME: ((github-username)) + GITHUB_PASSWORD: ((github-release-notes-access-token)) - name: promote-rc serial: true plan: - get: spring-boot-ci-image - get: git-repo trigger: false + - get: release-notes-repo - get: artifactory-repo trigger: false passed: [stage-rc] @@ -428,12 +409,22 @@ jobs: ARTIFACTORY_SERVER: ((artifactory-server)) ARTIFACTORY_USERNAME: ((artifactory-username)) ARTIFACTORY_PASSWORD: ((artifactory-password)) + - task: publish-release-notes + image: spring-boot-ci-image + file: git-repo/ci/tasks/publish-release-notes.yml + params: + RELEASE_TYPE: RC + GITHUB_ORGANIZATION: spring-projects + GITHUB_REPO: spring-boot + GITHUB_USERNAME: ((github-username)) + GITHUB_PASSWORD: ((github-release-notes-access-token)) - name: promote-release serial: true plan: - get: spring-boot-ci-image - get: git-repo trigger: false + - get: release-notes-repo - get: artifactory-repo trigger: false passed: [stage-release] @@ -449,6 +440,15 @@ jobs: ARTIFACTORY_PASSWORD: ((artifactory-password)) BINTRAY_SUBJECT: ((bintray-subject)) BINTRAY_REPO: ((bintray-repo)) + - task: publish-release-notes + image: spring-boot-ci-image + file: git-repo/ci/tasks/publish-release-notes.yml + params: + RELEASE_TYPE: RELEASE + GITHUB_ORGANIZATION: spring-projects + GITHUB_REPO: spring-boot + GITHUB_USERNAME: ((github-username)) + GITHUB_PASSWORD: ((github-release-notes-access-token)) - name: sync-to-maven-central serial: true plan: diff --git a/ci/scripts/promote.sh b/ci/scripts/promote.sh index a286525a54..2eff9db7e7 100755 --- a/ci/scripts/promote.sh +++ b/ci/scripts/promote.sh @@ -66,3 +66,4 @@ fi echo "Promotion complete" +echo $version > version/version \ No newline at end of file diff --git a/ci/scripts/publish-release-notes.sh b/ci/scripts/publish-release-notes.sh index f5c90932cf..821c2f6899 100755 --- a/ci/scripts/publish-release-notes.sh +++ b/ci/scripts/publish-release-notes.sh @@ -3,7 +3,7 @@ set -e source $(dirname $0)/common.sh -milestone=$( cat version/stageVersion ) +milestone=$( cat version/version ) if [[ $RELEASE_TYPE = "RELEASE" ]]; then milestone=${milestone%.RELEASE} fi diff --git a/ci/scripts/stage.sh b/ci/scripts/stage.sh index c529bcc6e0..b8ecc4f625 100755 --- a/ci/scripts/stage.sh +++ b/ci/scripts/stage.sh @@ -51,4 +51,3 @@ fi; echo "DONE" popd > /dev/null -echo $stageVersion > version/stageVersion diff --git a/ci/tasks/promote.yml b/ci/tasks/promote.yml index 3b27505bb2..015a935fb8 100644 --- a/ci/tasks/promote.yml +++ b/ci/tasks/promote.yml @@ -3,6 +3,8 @@ platform: linux inputs: - name: git-repo - name: artifactory-repo +outputs: +- name: version params: RELEASE_TYPE: ARTIFACTORY_SERVER: diff --git a/ci/tasks/stage.yml b/ci/tasks/stage.yml index f05f6d176a..f486313ae9 100644 --- a/ci/tasks/stage.yml +++ b/ci/tasks/stage.yml @@ -5,7 +5,6 @@ inputs: outputs: - name: stage-git-repo - name: distribution-repository -- name: version params: RELEASE_TYPE: caches: