BUILD-8317 Create a new GitHub action to support building MAVEN workloads#9
Merged
julien-carsique-sonarsource merged 1 commit intomasterfrom Jul 25, 2025
Conversation
2cdd0b7 to
5fa660a
Compare
809111c to
15932a2
Compare
39feca1 to
cc6db05
Compare
julien-carsique-sonarsource
approved these changes
Jul 24, 2025
jayadeep-km-sonarsource
approved these changes
Jul 25, 2025
Contributor
jayadeep-km-sonarsource
left a comment
There was a problem hiding this comment.
Apart some minor comments, the PR looks good to me. Great job!
Contributor
dfecb00 to
2e8de19
Compare
…oads Use ARTIFACTORY_ACCESS_TOKEN, not ARTIFACTORY_PRIVATE_PASSWORD Options for MAVEN_OPTS and SONAR_SCANNER_JAVA_OPTS Develocity is optional Cleanup M2 repo before cache Remove development/github/token/licenses-ro which is optional Rework build.sh: - align with other actions - simplify and shorten - validate all required environment variables at the beginning - maintenance branches are built the same as main branch (no more separated analysis) - improved unshallow mise: no need for jfrog CLI set deploy-pull-request to false by default Format: Shell functions documentation should be ahead, not after the function name Shell function names with underscore separator, not dash Use temp file in promote build info (was local .build-info) Check for gh in promote README: build-maven - no optional with parameter in the snippet - Configuration Options (`with` Parameters), Required GitHub permissions, Required Vault permissions are described after Improved test coverage to 100% (except build-gradle and build-npm) Reviewed-By: julien-carsique-sonarsource Reviewed-By: jayadeep-km-sonarsource
2e8de19 to
572642c
Compare
🤖 Pull Request summaryAdd build-maven action for Maven project builds and deployments.
|
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.



BUILD-8317
This PR migrates our Maven-related CI scripts from the ci-common-scripts repository into a new, self-contained GitHub Action.
The primary goal is to improve maintainability and simplify our workflows by centralizing the build and analysis logic within a versioned Action.
Tested with:
https://github.com/SonarSource/sonar-dummy/actions/runs/16524805308/job/46735258021?pr=463
Use ARTIFACTORY_ACCESS_TOKEN, not ARTIFACTORY_PRIVATE_PASSWORD
Options for MAVEN_OPTS and SONAR_SCANNER_JAVA_OPTS
Develocity is optional
Cleanup M2 repo before cache
Remove development/github/token/licenses-ro which is optional
Rework build.sh:
mise: no need for jfrog CLI
set deploy-pull-request to false by default
Format: Shell functions documentation should be ahead, not after the function name
Shell function names with underscore separator, not dash
Use temp file in promote build info (was local .build-info)
Check for gh in promote
README: build-maven
withParameters), Required GitHub permissions, Required Vault permissions are described afterImproved test coverage to 100% (except build-gradle and build-npm)