diff --git a/ci/pipeline.yml b/ci/pipeline.yml index 5827da9c9f..e8f4689e3b 100644 --- a/ci/pipeline.yml +++ b/ci/pipeline.yml @@ -424,17 +424,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: @@ -455,6 +444,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", "jdk11-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: