Skip to content

Commit 4d9ba89

Browse files
committed
Reverting distribution repository
To re-enable snapshot publishing
1 parent 1f7c616 commit 4d9ba89

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

ci/scripts/build-project.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,18 @@ set -euo pipefail
44

55
readonly ONLY_SHOW_STANDARD_STREAMS_ON_TEST_FAILURE="${ONLY_SHOW_STANDARD_STREAMS_ON_TEST_FAILURE:-true}"
66
readonly SKIP_TESTS="${SKIP_TESTS:-false}"
7-
readonly DISTRIBUTION_REPOSITORY_OUTPUT="${DISTRIBUTION_REPOSITORY_OUTPUT:?must be set}"
87

8+
# shellcheck source=common.sh
9+
source "$(dirname "$0")/common.sh"
10+
repository=$(pwd)/distribution-repository
911
if [ "$SKIP_TESTS" == "true" ]; then
1012
build_task=assemble
1113
else
1214
build_task=build
1315
fi
1416

17+
pushd git-repo >/dev/null
1518
./gradlew --parallel clean "$build_task" publish \
1619
-PonlyShowStandardStreamsOnTestFailure="${ONLY_SHOW_STANDARD_STREAMS_ON_TEST_FAILURE}" \
17-
-PpublicationRepository="${DISTRIBUTION_REPOSITORY_OUTPUT}"
20+
-PpublicationRepository="${repository}"
21+
popd >/dev/null

ci/tasks/build-project.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ caches:
1515
- path: maven
1616
- path: gradle
1717
run:
18-
path: ci/scripts/build-project.sh
19-
dir: git-repo
18+
path: git-repo/ci/scripts/build-project.sh
2019
params:
21-
DISTRIBUTION_REPOSITORY_OUTPUT: ../distribution-repository
20+
ARTIFACTORY_USERNAME: ((artifactory-username))
21+
ARTIFACTORY_PASSWORD: ((artifactory-password))

0 commit comments

Comments
 (0)