Upating build dist repository
This commit is contained in:
@@ -4,10 +4,8 @@ set -euo pipefail
|
||||
|
||||
readonly ONLY_SHOW_STANDARD_STREAMS_ON_TEST_FAILURE="${ONLY_SHOW_STANDARD_STREAMS_ON_TEST_FAILURE:-true}"
|
||||
readonly SKIP_TESTS="${SKIP_TESTS:-false}"
|
||||
readonly DISTRIBUTION_REPOSITORY_OUTPUT="${DISTRIBUTION_REPOSITORY_OUTPUT:?must be set}"
|
||||
|
||||
# shellcheck source=common.sh
|
||||
source "$(dirname "$0")/common.sh"
|
||||
repository=$(pwd)/distribution-repository
|
||||
if [ "$SKIP_TESTS" == "true" ]; then
|
||||
build_task=assemble
|
||||
else
|
||||
@@ -16,4 +14,4 @@ fi
|
||||
|
||||
./gradlew --parallel clean "$build_task" publish \
|
||||
-PonlyShowStandardStreamsOnTestFailure="${ONLY_SHOW_STANDARD_STREAMS_ON_TEST_FAILURE}" \
|
||||
-PpublicationRepository="${repository}"
|
||||
-PpublicationRepository="${DISTRIBUTION_REPOSITORY_OUTPUT}"
|
||||
|
||||
@@ -18,5 +18,4 @@ run:
|
||||
path: ci/scripts/build-project.sh
|
||||
dir: git-repo
|
||||
params:
|
||||
ARTIFACTORY_USERNAME: ((artifactory-username))
|
||||
ARTIFACTORY_PASSWORD: ((artifactory-password))
|
||||
DISTRIBUTION_REPOSITORY_OUTPUT: ../distribution-repository
|
||||
|
||||
Reference in New Issue
Block a user