Skip to content

Commit

Permalink
[ACS-9025] Fix dsync build
Browse files Browse the repository at this point in the history
  • Loading branch information
cezary-witkowski committed Dec 3, 2024
1 parent 63e750d commit 75e7839
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/ci/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ else
fi

DSYNC_UPSTREAM_REPO="github.com/Alfresco/dsync-services.git"
pullAndBuildSameBranchOnUpstream "${DSYNC_UPSTREAM_REPO}"
pullAndBuildSameBranch "${DSYNC_UPSTREAM_REPO}"

# Build the current project
if [[ -n "$IMAGE_TAG" ]]; then
Expand Down
16 changes: 16 additions & 0 deletions scripts/ci/build_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,22 @@ function pullAndBuildSameBranchOnUpstream() {
popd
}

function pullAndBuildSameBranch() {
local UPSTREAM_REPO="${1}"

local SOURCE_BRANCH="$(identifyUpstreamSourceBranch "${UPSTREAM_REPO}")"

cloneRepo "${UPSTREAM_REPO}" "${SOURCE_BRANCH}"

pushd "$(dirname "${BASH_SOURCE[0]}")/../../../"

cd "$(basename "${UPSTREAM_REPO%.git}")"

mvn -B -ntp -V -q clean install -DskipTests -Dmaven.javadoc.skip=true

popd
}

function retieveLatestTag() {
local REPO="${1}"
local BRANCH="${2}"
Expand Down

0 comments on commit 75e7839

Please sign in to comment.