Publish release notes after artifacts have been promoted

Closes gh-14604
pull/14460/merge
Madhura Bhave 6 years ago
parent febaf15b61
commit cdc6cfcaa8

@ -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:

@ -66,3 +66,4 @@ fi
echo "Promotion complete"
echo $version > version/version

@ -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

@ -51,4 +51,3 @@ fi;
echo "DONE"
popd > /dev/null
echo $stageVersion > version/stageVersion

@ -3,6 +3,8 @@ platform: linux
inputs:
- name: git-repo
- name: artifactory-repo
outputs:
- name: version
params:
RELEASE_TYPE:
ARTIFACTORY_SERVER:

@ -5,7 +5,6 @@ inputs:
outputs:
- name: stage-git-repo
- name: distribution-repository
- name: version
params:
RELEASE_TYPE:
caches:

Loading…
Cancel
Save