mirror of
https://github.com/Alfresco/acs-community-packaging.git
synced 2025-09-10 14:12:09 +00:00
use jakarta-migrated community-repo (#1526)
* use jakarta-migrated community-repo * use jakarta-migrated community-repo and community-share * build jakarta dependencies for community-repo * temporarily do not build share * fix parent pom version * use -force option to fix docker image build failures * trigger build * use correct versions of community-share and acs-packaging * update community-repo version * Use released share zip * Bump cargo-maven3-plugin tomcat version from 9x to 10x * revert to Tomcat9x * bump community-repo from 161-SNAPSHOT to 163-SNAPSHOT * Bump cargo-maven3-plugin tomcat version from 9x to 10x * Minor changes to tomcat deployment test * Bump community-repo from 163-SNAPSHOT to 164-SNAPSHOT * Include Tomcat deployment test as condition for docker images update * Changes to community_test_tomcat_deployment * Correct community-repo version * Bump community-repo version to 23.1.0.170-SNAPSHOT * Pin acs-packaging version to A27 for share compatibility * Workaround for not migrated share * Disable Tomcat deployment test * Update latest docker images no longer relies on tomcat deployment test * As per [ACS-5545] -force flag should not be needed * Remove jakarta-dependencies build from script --------- Co-authored-by: pzurek <Piotr.Zurek@hyland.com> Co-authored-by: Kacper Magdziarz <95610011+kmagdziarz@users.noreply.github.com> Co-authored-by: kmagdziarz <Kacper.Magdziarz@hyland.com>
This commit is contained in:
@@ -77,9 +77,20 @@ fi
|
||||
SHARE_UPSTREAM_REPO="github.com/Alfresco/alfresco-community-share.git"
|
||||
# Checkout the upstream share project (tag or branch; + build if the latter)
|
||||
if [[ "${SHARE_DEPENDENCY_VERSION}" =~ ^.+-SNAPSHOT$ ]] ; then
|
||||
pullAndBuildSameBranchOnUpstream "${SHARE_UPSTREAM_REPO}" "-P$BUILD_PROFILE -Pags -Dlicense.failOnNotUptodateHeader=true -Ddocker.quay-expires.value=NEVER ${REPO_IMAGE} -Ddependency.alfresco-community-repo.version=${COM_DEPENDENCY_VERSION}"
|
||||
pullAndBuildSameBranchOnUpstream "${SHARE_UPSTREAM_REPO}" "-P$BUILD_PROFILE -Pags -Dlicense.failOnNotUptodateHeader=true -Ddocker.quay-expires.value=NEVER ${REPO_IMAGE}"
|
||||
else
|
||||
pullUpstreamTagAndBuildDockerImage "${SHARE_UPSTREAM_REPO}" "${SHARE_DEPENDENCY_VERSION}" "-P$BUILD_PROFILE -Pags -Dlicense.failOnNotUptodateHeader=true -Ddocker.quay-expires.value=NEVER -Ddependency.alfresco-community-repo.version=${COM_DEPENDENCY_VERSION}"
|
||||
# To handle corresponding problem in acs-packaging https://alfresco.atlassian.net/browse/ACS-5820
|
||||
pullUpstreamTag "${SHARE_UPSTREAM_REPO}" "${SHARE_DEPENDENCY_VERSION}"
|
||||
|
||||
docker images
|
||||
|
||||
git clone -b "${SHARE_DEPENDENCY_VERSION}" --depth=1 "https://${GIT_USERNAME}:${GIT_PASSWORD}@${SHARE_UPSTREAM_REPO}" /tmp/commrepo
|
||||
mvn -f /tmp/commrepo/pom.xml -B -ntp -V clean package -DskipTests -Dmaven.javadoc.skip=true "-Dimage.tag=${SHARE_DEPENDENCY_VERSION}" "-P$BUILD_PROFILE" -Pags -Dlicense.failOnNotUptodateHeader=true
|
||||
|
||||
docker images
|
||||
|
||||
buildUpstreamTag "${SHARE_UPSTREAM_REPO}" "${SHARE_DEPENDENCY_VERSION}" "-P$BUILD_PROFILE -Pags -Dlicense.failOnNotUptodateHeader=true -Ddocker.quay-expires.value=NEVER"
|
||||
#pullUpstreamTagAndBuildDockerImage "${SHARE_UPSTREAM_REPO}" "${SHARE_DEPENDENCY_VERSION}" "-P$BUILD_PROFILE -Pags -Dlicense.failOnNotUptodateHeader=true -Ddocker.quay-expires.value=NEVER -Ddependency.alfresco-community-repo.version=${COM_DEPENDENCY_VERSION}"
|
||||
fi
|
||||
|
||||
# Build the current project
|
||||
|
Reference in New Issue
Block a user