Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build-maven/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ runs:
SIGN_KEY: ${{ fromJSON(steps.secrets.outputs.vault).SIGN_KEY }}
PGP_PASSPHRASE: ${{ fromJSON(steps.secrets.outputs.vault).PGP_PASSPHRASE }}
working-directory: ${{ inputs.working-directory }}
run: $ACTION_PATH_BUILD_MAVEN/build.sh
run: $ACTION_PATH_BUILD_MAVEN/build.sh $USER_MAVEN_ARGS

- name: Cleanup Maven repository before caching
shell: bash
Expand Down
5 changes: 1 addition & 4 deletions build-maven/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
# - DEPLOY_PULL_REQUEST: Whether to deploy pull request artifacts (default: false)
# - SONAR_SCANNER_JAVA_OPTS: JVM options for SonarQube scanner (e.g. -Xmx512m)
# - SCANNER_VERSION: SonarQube Maven plugin version (default: 5.1.0.4751)
# - USER_MAVEN_ARGS: Additional arguments to pass to Maven
# shellcheck source-path=SCRIPTDIR

set -euo pipefail
Expand All @@ -60,7 +59,6 @@ fi
: "${RUN_SHADOW_SCANS:?}"
: "${DEPLOY_PULL_REQUEST:=false}"
: "${DEPLOY:=true}"
: "${USER_MAVEN_ARGS:=}"
export ARTIFACTORY_URL DEPLOY_PULL_REQUEST

# FIXME Workaround for SonarSource parent POM; it can be removed after releases of parent 73+ and parent-oss 84+
Expand Down Expand Up @@ -240,6 +238,5 @@ export_built_artifacts() {
}

if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
# shellcheck disable=SC2086
build_maven $USER_MAVEN_ARGS
build_maven "$@"
fi
Loading