Publish release notes after central sync for releases

Closes gh-15713
pull/16307/head
Madhura Bhave 6 years ago
parent 5f4fa9d52a
commit 3e82e7aa7e

@ -455,17 +455,6 @@ jobs:
BINTRAY_REPO: ((bintray-repo))
BINTRAY_USERNAME: ((bintray-username))
BINTRAY_API_KEY: ((bintray-api-key))
- task: generate-release-notes
file: git-repo/ci/tasks/generate-release-notes.yml
params:
RELEASE_TYPE: RELEASE
GITHUB_USERNAME: ((github-username))
GITHUB_TOKEN: ((github-release-notes-access-token))
- put: github-release
params:
name: generated-release-notes/tag
tag: generated-release-notes/tag
body: generated-release-notes/release-notes.md
- name: sync-to-maven-central
serial: true
plan:
@ -486,6 +475,17 @@ jobs:
SONATYPE_PASSWORD_TOKEN: ((sonatype-user-token-password))
BINTRAY_SUBJECT: ((bintray-subject))
BINTRAY_REPO: ((bintray-repo))
- task: generate-release-notes
file: git-repo/ci/tasks/generate-release-notes.yml
params:
RELEASE_TYPE: RELEASE
GITHUB_USERNAME: ((github-username))
GITHUB_TOKEN: ((github-release-notes-access-token))
- put: github-release
params:
name: generated-release-notes/tag
tag: generated-release-notes/tag
body: generated-release-notes/release-notes.md
groups:
- name: "Build"
jobs: ["build", "jdk9-build", "jdk10-build"]

@ -17,3 +17,4 @@ echo "Syncing ${buildName}/${buildNumber} to Maven Central"
-X \
POST "https://api.bintray.com/maven_central_sync/${BINTRAY_SUBJECT}/${BINTRAY_REPO}/${groupId}/versions/${version}" > /dev/null || { echo "Failed to sync" >&2; exit 1; }
echo "Sync complete"
echo $version > version/version

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

Loading…
Cancel
Save