generated from SAP/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 21
chore: Migrate release process to maven central #866
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
209 commits
Select commit
Hold shift + click to select a range
e62cd31
first changes to release process
Jonas-Isr 1e18371
fix link in PR message
Jonas-Isr af4b3cc
...
Jonas-Isr 5a99ee3
stop notification
Jonas-Isr b82bed8
no blackduck 🦆
Jonas-Isr 6b49c6a
test mvn args
Jonas-Isr 88dc335
re-introduce mvn arg
Jonas-Isr b603fce
"fix" javadoc.overview.html
Jonas-Isr b4ddae3
delete javadoc related mvn args
Jonas-Isr 19ec3e7
delete javadoc related mvn args
Jonas-Isr a80ae28
delete unit tests from Ci to save time
Jonas-Isr 1ddb579
re-add some docs
Jonas-Isr 56c18ec
less docs
Jonas-Isr ddc19cd
remove code ql to save time
Jonas-Isr cc916c8
remove javadocs creation
Jonas-Isr bdcbabc
exclude blackduck from CI check
Jonas-Isr d2e80da
skip spotbugs to save time
Jonas-Isr 5aab930
remove prats from perform-release.yml that only care about docs and r…
Jonas-Isr 04e2ae3
remove workflow-succeeded check (it fails since I skip blackduck etc …
Jonas-Isr 9f88aaa
remove (last?) usage of docs in perform release
Jonas-Isr 8d0aeb6
add url for maven distribution management
Jonas-Isr 004a4e2
small fix
Jonas-Isr f1e8d27
show mvn error stacktrace
Jonas-Isr c2de848
add maven-gpg-plugin
Jonas-Isr d5b62e2
fix(?) sortpom failure
Jonas-Isr 3ca48ac
add new central url to perform-release.yml
Jonas-Isr 7a38ea5
add gpg and central credentials to deploy step
Jonas-Isr 171bdcc
try different user-pw
Jonas-Isr 54112b6
remove spotbugs to save time in CI
Jonas-Isr 231ec1e
use central.sonatype.com/api/v1/publisher/upload
Jonas-Isr 53634d1
remove settings.xml
Jonas-Isr 165fd50
add release profile to pom files
Jonas-Isr f7e1959
no more generate-release-artifacts script needed(?)
Jonas-Isr a63807a
reorder pom file
Jonas-Isr a758752
reintroduce parts of CI
Jonas-Isr f423c18
build sdk in prepare-release.yaml
Jonas-Isr 8ecebfa
fix prepare-release.yaml
Jonas-Isr 7821d86
fix prepare-release.yaml
Jonas-Isr 7e061c2
double check
Jonas-Isr 7eb1d81
show maven stack traces
Jonas-Isr 9e22fde
disable remove-project-artifact for release profile
Jonas-Isr c42a053
reorder pom
Jonas-Isr 383493f
remove remove-project-artifact execution completely
Jonas-Isr 7bf4fc3
remove remove-project-artifact execution completely
Jonas-Isr 716b5ac
add distributionManagement to bom
Jonas-Isr bec3730
add maven central as
Jonas-Isr df5a9bf
improve perform-release.yml
Jonas-Isr 82772a0
troubleshooting pom-jar issue
Jonas-Isr f83289d
troubleshooting pom-jar issue
Jonas-Isr ee89b9f
troubleshooting pom-jar issue
Jonas-Isr e86632b
troubleshooting pom-jar issue
Jonas-Isr 9f9eef7
resolve(?) pom-jar issue for module parents
Jonas-Isr f18b7b9
fix parent pom
Jonas-Isr 20ac0bd
troubleshoot bom problem
Jonas-Isr 9853860
troubleshoot bom problem
Jonas-Isr 33f6af8
troubleshoot bom problem
Jonas-Isr 1883de1
troubleshoot bom problem
Jonas-Isr d638099
troubleshoot bom problem
Jonas-Isr c19c4f3
troubleshoot bom problem
Jonas-Isr c49ff8b
troubleshoot bom problem
Jonas-Isr 2eace63
add scm information to all poms
Jonas-Isr 3632ea0
cosmetics
Jonas-Isr 2519a6b
add flatten-maven-plugin
Jonas-Isr 1693b0f
add SCM info to sdk-core pom
Jonas-Isr b71636f
remove modules to speed up process
Jonas-Isr eacd39b
remove modules to speed up process
Jonas-Isr 6d756d3
remove modules to speed up process
Jonas-Isr 56cbe23
remove modules to speed up process
Jonas-Isr d187314
remove modules to speed up process
Jonas-Isr cc83ae1
remove modules to speed up process
Jonas-Isr c327e6e
remove modules to speed up process
Jonas-Isr f107725
remove modules to speed up process
Jonas-Isr 6dc26a5
remove modules to speed up process
Jonas-Isr 880707a
try flatten-plugin
Jonas-Isr 825555b
add explicit versions to sdk-parent dependencies (maven validation is…
Jonas-Isr 9021fd9
sort pom
Jonas-Isr a75232f
Release 0.18.0 (#18)
bot-sdk-js 73b195c
Revert "Release 0.18.0 (#18)"
Jonas-Isr ce8cdb4
clean up parent pom
Jonas-Isr 8156ca2
Release 0.19.0 (#19)
bot-sdk-js ae74f39
Revert "Release 0.19.0 (#19)"
Jonas-Isr 21532a7
clean up parent pom
Jonas-Isr 792932d
add missing plugin versions
Jonas-Isr 108887a
Release 0.20.0 (#20)
bot-sdk-js 11db852
Revert "Release 0.20.0 (#20)"
Jonas-Isr b91a024
add missing modules again to test
Jonas-Isr a64885f
manage which modules are released through modules list
Jonas-Isr d3c2a69
Release 0.22.0 (#22)
bot-sdk-js 8b3354a
Revert "Release 0.22.0 (#22)"
Jonas-Isr 0fa3e4d
remove audience profile and property from pom files
Jonas-Isr a1b97f9
fix(?) testutils issue
Jonas-Isr 99aec60
Release 0.24.0 (#24)
bot-sdk-js b3af438
Revert "Release 0.24.0 (#24)"
Jonas-Isr 1e4f7eb
fix(?) testutils issue
Jonas-Isr 359828b
Release 0.25.0 (#25)
bot-sdk-js 9d83c54
Revert "Release 0.25.0 (#25)"
Jonas-Isr 0baaa12
remove modules to speed up workflows
Jonas-Isr 4affdaf
troubleshoot testutils issue
Jonas-Isr 1657808
Release 0.26.0 (#26)
bot-sdk-js 234a92f
Revert "Release 0.26.0 (#26)"
Jonas-Isr f513aa5
reintroduce additional module to test
Jonas-Isr c8404a4
Release 0.27.0 (#27)
bot-sdk-js bdfd612
Revert "Release 0.27.0 (#27)"
Jonas-Isr 4de26cf
reintroduce javadoc
Jonas-Isr 132fa4d
reintroduce tests to CI
Jonas-Isr fe65769
disable main-build in favour of deploy snapshot to artifactory
Jonas-Isr 6a7a26d
disable main-build in favour of deploy snapshot to artifactory
Jonas-Isr 050bb6e
remove tests again for speed (and missing coverage goals)
Jonas-Isr 94ac27b
put more steps together (try apidocs release)
Jonas-Isr d1004c8
troubleshooting apidocs release
Jonas-Isr 1fdfc30
troubleshooting apidocs release
Jonas-Isr bdb24c6
troubleshooting apidocs release
Jonas-Isr 4d6f185
troubleshooting apidocs release
Jonas-Isr 345cc96
Release 0.28.0 (#28)
bot-sdk-js c591297
Revert "Release 0.28.0 (#28)"
Jonas-Isr 16ae98c
troubleshooting apidocs release
Jonas-Isr 8e8c766
troubleshooting apidocs release
Jonas-Isr d4e1b40
troubleshooting apidocs release
Jonas-Isr 564f3ae
troubleshooting apidocs release
Jonas-Isr 7bfae19
troubleshooting apidocs release
Jonas-Isr 9b388f7
troubleshooting apidocs release
Jonas-Isr 1307f0f
troubleshooting apidocs release
Jonas-Isr 311c7c1
troubleshooting apidocs release
Jonas-Isr 3ef13fb
troubleshooting apidocs release
Jonas-Isr 9d86825
troubleshooting apidocs release
Jonas-Isr 14242b0
delete slack notification in deploy-snapshot.yaml
Jonas-Isr a55e355
troubleshooting apidocs release
Jonas-Isr 54fb499
troubleshooting apidocs release
Jonas-Isr 3719185
troubleshooting apidocs release
Jonas-Isr 87b3d2b
reordered parent pom (to align with structure from ai sdk)
Jonas-Isr 0f6955a
merge docs and release profile
Jonas-Isr 424b1df
merge docs and release profile
Jonas-Isr b9a55a4
merge docs and release profile
Jonas-Isr fbded01
troubleshooting apidocs release
Jonas-Isr 64faddb
troubleshooting apidocs release
Jonas-Isr 95f2297
troubleshooting apidocs release
Jonas-Isr 2053114
troubleshooting apidocs release
Jonas-Isr 8f136e5
Revert "troubleshooting apidocs release"
Jonas-Isr c54afc7
troubleshooting apidocs release
Jonas-Isr 011ea52
troubleshooting apidocs release
Jonas-Isr 8820d04
Revert "troubleshooting apidocs release"
Jonas-Isr b95c441
troubleshooting apidocs release
Jonas-Isr d0a8fd3
troubleshooting apidocs release
Jonas-Isr bb9e993
cleanup
Jonas-Isr 07978e9
cleanup
Jonas-Isr d738829
cleanup
Jonas-Isr 74ee560
cleanup
Jonas-Isr 8572626
cleanup
Jonas-Isr d6b3621
cleanup
Jonas-Isr 12449ab
cleanup
Jonas-Isr 1d5dbde
cleanup
Jonas-Isr ee1fac2
cleanup
Jonas-Isr 336ad3c
cleanup
Jonas-Isr dce47b4
cleanup
Jonas-Isr 1cdebcc
cleanup
Jonas-Isr 17a2f20
cleanup
Jonas-Isr 8604c4d
troubleshoot validation
Jonas-Isr 48dbd63
troubleshoot validation
Jonas-Isr a3e9985
troubleshoot validation
Jonas-Isr ecb1560
troubleshoot validation - reintroduce flatten-maven-plugin
Jonas-Isr dcdcfc2
Release 0.33.0 (#32)
bot-sdk-js 6d5f8f1
Revert "Release 0.33.0 (#32)"
Jonas-Isr b1b516a
clean-up
Jonas-Isr bb5803a
clean-up
Jonas-Isr bcd71e1
merge
Jonas-Isr bf5d16b
clean up
Jonas-Isr f006ace
clean up
Jonas-Isr e4bd1d1
troubleshoot blackduck
Jonas-Isr 9fa5020
exclude blackduck from prepare-release
Jonas-Isr 6cfef49
exclude blackduck from prepare-release
Jonas-Isr d7c02f9
exclude blackduck from prepare-release
Jonas-Isr e9ce6a6
exclude blackduck from prepare-release
Jonas-Isr cedcc52
exclude blackduck from prepare-release
Jonas-Isr 3e64644
exclude blackduck from prepare-release
Jonas-Isr 696f3c2
exclude blackduck from prepare-release
Jonas-Isr 0fa9fb0
exclude blackduck from prepare-release
Jonas-Isr b9cbac3
remove openapi-sample from deployment
Jonas-Isr ed63c9d
clean up
Jonas-Isr cb4c5c6
Release 0.39.0 (#35)
bot-sdk-js d2ac25b
Revert "Release 0.39.0 (#35)"
Jonas-Isr e423d9e
clean up
Jonas-Isr 1753dec
clean up
Jonas-Isr 9ed266b
clean up
Jonas-Isr 977a954
clean up
Jonas-Isr 23ff27e
add blackduck again
Jonas-Isr 967156e
fix(?) blackduck exclude
Jonas-Isr 91dc584
fix(?) blackduck exclude
Jonas-Isr 00b53f6
Release 0.42.0 (#37)
bot-sdk-js 71d176f
Revert "Release 0.42.0 (#37)"
Jonas-Isr 0ab5e39
Charles' review
Jonas-Isr 1035960
Release 0.43.0 (#38)
bot-sdk-js c00f8dc
Revert "Release 0.43.0 (#38)"
Jonas-Isr 23e6f32
re-add cron for blackduck
Jonas-Isr a31b809
Charles review
Jonas-Isr ddfa55c
Charles review
Jonas-Isr 3d9fb16
Charles review
Jonas-Isr 95cc5ec
scm inherited?
Jonas-Isr ddf5cf6
remove scm from children
Jonas-Isr 230893a
re-add flatten-maven-plugin
Jonas-Isr 9538c04
re-add flatten-maven-plugin
Jonas-Isr daa0595
Alex' review
Jonas-Isr 6714c83
Alex' review
Jonas-Isr 8378ce3
re-add scm information to parents
Jonas-Isr cc4a5f7
Release 0.47.0 (#42)
bot-sdk-js 32c01d5
Revert "Release 0.47.0 (#42)"
Jonas-Isr cc5af3d
Update README.md
newtork d556f91
Update README.md
newtork 5f32616
Update prepare-release.yaml
Jonas-Isr fd1fd10
Merge branch 'main' into main
newtork File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,86 +1,40 @@ | ||
| name: Deploy Snapshot to Maven Central | ||
| name: Deploy Snapshot to SAP Common Artifactory | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| inputs: | ||
| skip_blackduck_scan: | ||
| description: "Skip Blackduck Scan" | ||
| type: boolean | ||
| default: false | ||
| required: false | ||
|
|
||
| env: | ||
| CI_BUILD_WORKFLOW: "continuous-integration.yaml" # Name of the workflow that should be triggered for CI builds | ||
| RELEASE_ARTIFACT_NAME: "release-artifacts" # Name of the artifact that should be downloaded from the CI build workflow | ||
|
|
||
| MVN_CLI_ARGS: "--batch-mode --no-transfer-progress --fail-at-end --show-version" | ||
| schedule: | ||
| - cron: 0 20 * * 1-5 | ||
|
|
||
| jobs: | ||
| run-ci: | ||
| name: "Continuous Integration" | ||
| runs-on: ubuntu-latest | ||
| outputs: | ||
| ci-run-id: ${{ steps.trigger-ci.outputs.run-id }} | ||
| permissions: | ||
| actions: write # needed to trigger the ci-build workflow | ||
| statuses: write # needed to update the commit status | ||
| steps: | ||
| - name: "Checkout repository" | ||
| uses: actions/checkout@v4 | ||
| - name: "Get Commit SHA" | ||
| run: echo "COMMIT_SHA=$(git rev-parse HEAD)" >> $GITHUB_ENV | ||
| - name: "Get Branch Name" | ||
| run: echo "BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD)" >> $GITHUB_ENV | ||
|
|
||
| - name: "Trigger CI Workflow" | ||
| id: trigger-ci | ||
| uses: ./.github/actions/trigger-workflow | ||
| with: | ||
| workflow: ${{ env.CI_BUILD_WORKFLOW }} | ||
| workflow-ref: ${{ env.BRANCH_NAME }} | ||
| commit-sha: ${{ env.COMMIT_SHA }} | ||
| parameters: > | ||
| -f commit=${{ env.COMMIT_SHA }} | ||
| -f build-release-artifacts=true | ||
| -f run-blackduck-scan=${{ !github.event.inputs.skip_blackduck_scan }} | ||
|
|
||
| - name: "Await CI Workflow" | ||
| uses: ./.github/actions/await-workflow | ||
| with: | ||
| run-id: ${{ steps.trigger-ci.outputs.run-id }} | ||
| commit-status: "Continuous Integration Workflow" | ||
|
|
||
| deploy-snapshot: | ||
| name: Deploy Snapshot | ||
| needs: [ run-ci ] | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 15 | ||
| permissions: | ||
| actions: read # needed to download the artifacts from the ci-build workflow | ||
| steps: | ||
| - name: "Checkout Repository" | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: "Deploy Snapshot" | ||
| uses: ./.github/actions/deploy-snapshot | ||
| - name: "Setup java" | ||
| uses: actions/setup-java@v4 | ||
| with: | ||
| ci-run-id: ${{ needs.run-ci.outputs.ci-run-id }} | ||
| repository-url: "https://oss.sonatype.org/content/repositories/snapshots" | ||
| repository-username: ${{ secrets.MAVEN_CENTRAL_USER }} | ||
| repository-password: ${{ secrets.MAVEN_CENTRAL_PASSWORD }} | ||
| release-artifact-name: ${{ env.RELEASE_ARTIFACT_NAME }} | ||
|
|
||
| notify-job: | ||
| runs-on: ubuntu-latest | ||
| needs: [ run-ci, deploy-snapshot ] | ||
| if: ${{ failure() && github.ref == 'refs/heads/main' }} | ||
| steps: | ||
| - name: "Checkout" | ||
| uses: actions/checkout@v4 | ||
| - name: "Notify" | ||
| run: python .pipeline/scripts/notify.py | ||
| distribution: "sapmachine" | ||
| java-version: "17" | ||
| server-id: artifactory-snapshots | ||
| server-username: DEPLOYMENT_USER | ||
| server-password: DEPLOYMENT_PASS | ||
|
|
||
| - name: "Publish Snapshot" | ||
| run: > | ||
| mvn | ||
| --batch-mode | ||
| --no-transfer-progress | ||
| --threads 1C | ||
| --show-version | ||
| -DrepositoryId=artifactory-snapshots | ||
| -Dmaven.compiler.showCompilationChanges | ||
| -Dhttp.keepAlive=false | ||
newtork marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| clean package deploy | ||
| env: | ||
| SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | ||
| WORKFLOW: ${{ github.workflow }} | ||
| WORKFLOW_RUN_URL: https://github.com/SAP/cloud-sdk-java/actions/runs/${{ github.run_id }} | ||
| BRANCH_NAME: ${{ github.ref_name }} | ||
| DEPLOYMENT_USER: ${{ secrets.ARTIFACTORY_COMMON_USER }} | ||
| DEPLOYMENT_PASS: ${{ secrets.ARTIFACTORY_COMMON_PASSWORD }} | ||
|
|
||
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CI now runs on every PR. This is because
main-buildis deleted to align more with AI SDK.