diff --git a/ci/pipeline.yml b/ci/pipeline.yml index 95d74f664a..9e64ff61a8 100644 --- a/ci/pipeline.yml +++ b/ci/pipeline.yml @@ -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"] diff --git a/ci/scripts/sync-to-maven-central.sh b/ci/scripts/sync-to-maven-central.sh index 23a97d7870..88924ac826 100755 --- a/ci/scripts/sync-to-maven-central.sh +++ b/ci/scripts/sync-to-maven-central.sh @@ -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 diff --git a/ci/tasks/sync-to-maven-central.yml b/ci/tasks/sync-to-maven-central.yml index a3ab0c5fcb..a44af5af16 100644 --- a/ci/tasks/sync-to-maven-central.yml +++ b/ci/tasks/sync-to-maven-central.yml @@ -3,6 +3,8 @@ platform: linux inputs: - name: git-repo - name: artifactory-repo +outputs: +- name: version params: BINTRAY_REPO: BINTRAY_SUBJECT: