File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -4,14 +4,18 @@ set -euo pipefail
44
55readonly ONLY_SHOW_STANDARD_STREAMS_ON_TEST_FAILURE=" ${ONLY_SHOW_STANDARD_STREAMS_ON_TEST_FAILURE:- true} "
66readonly 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
911if [ " $SKIP_TESTS " == " true" ]; then
1012 build_task=assemble
1113else
1214 build_task=build
1315fi
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
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ caches:
1515 - path : maven
1616 - path : gradle
1717run :
18- path : ci/scripts/build-project.sh
19- dir : git-repo
18+ path : git-repo/ci/scripts/build-project.sh
2019params :
21- DISTRIBUTION_REPOSITORY_OUTPUT : ../distribution-repository
20+ ARTIFACTORY_USERNAME : ((artifactory-username))
21+ ARTIFACTORY_PASSWORD : ((artifactory-password))
You can’t perform that action at this time.
0 commit comments