mirror of
https://github.com/Alfresco/acs-community-packaging.git
synced 2025-10-01 14:41:54 +00:00
acs-community-packaging builds must use the local 'latest' tag of repo working with SNAPSHOTs
This commit is contained in:
@@ -7,6 +7,7 @@ pushd "$(dirname "${BASH_SOURCE[0]}")/../../"
|
|||||||
source "$(dirname "${BASH_SOURCE[0]}")/build_functions.sh"
|
source "$(dirname "${BASH_SOURCE[0]}")/build_functions.sh"
|
||||||
|
|
||||||
COM_DEPENDENCY_VERSION="$(retrievePomProperty "dependency.alfresco-community-repo.version")"
|
COM_DEPENDENCY_VERSION="$(retrievePomProperty "dependency.alfresco-community-repo.version")"
|
||||||
|
REPO_IMAGE=$([[ "${COM_DEPENDENCY_VERSION}" =~ ^.+-SNAPSHOT$ ]] && echo "-Drepo.image.tag=latest" || echo)
|
||||||
|
|
||||||
# Either both the parent and the upstream dependency are the same, or else fail the build
|
# Either both the parent and the upstream dependency are the same, or else fail the build
|
||||||
if [ "${COM_DEPENDENCY_VERSION}" != "$(retrievePomParentVersion)" ]; then
|
if [ "${COM_DEPENDENCY_VERSION}" != "$(retrievePomParentVersion)" ]; then
|
||||||
@@ -37,8 +38,7 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Build the current project
|
# Build the current project
|
||||||
mvn -B -V -q install -DskipTests -Dmaven.javadoc.skip=true -Pbuild-docker-images -Pags \
|
mvn -B -V -q install -DskipTests -Dmaven.javadoc.skip=true -Pbuild-docker-images -Pags "${REPO_IMAGE}"
|
||||||
$([[ "${COM_DEPENDENCY_VERSION}" =~ ^.+-SNAPSHOT$ ]] && echo "-Drepo.image.tag=latest")
|
|
||||||
|
|
||||||
|
|
||||||
popd
|
popd
|
||||||
|
Reference in New Issue
Block a user