diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c9990f5c9..2ed1e6db7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -116,32 +116,37 @@ jobs: - name: "Clean Maven cache" run: bash ./scripts/ci/cleanup_cache.sh - community_test_tomcat_deployment: - name: "Test Tomcat deployment" - runs-on: ubuntu-latest - if: "!contains(github.event.head_commit.message, '[skip tests]')" - steps: - - uses: actions/checkout@v3 - - uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v1.33.0 - - uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v1.33.0 - - name: "Init" - timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }} - run: | - bash ./scripts/ci/init.sh - bash ./scripts/ci/build.sh - - name: "Set up the environment" - run: | - ${TAS_SCRIPTS}/start-compose.sh ./dev/docker-compose.yml - ${TAS_SCRIPTS}/wait-for-alfresco-start.sh "http://localhost:8983/solr" - - name: "Run tomcat, verify it starts" - id: tests - run: | - (mvn clean install -Prun -rf dev &) - ${TAS_SCRIPTS}/wait-for-alfresco-start.sh "http://localhost:8080/alfresco/" - echo "Test Alfresco Repository availability" - curl -Ls -o /dev/null --fail "http://localhost:8080/alfresco" - echo "Test Share availability" - curl -Ls -o /dev/null --fail "http://localhost:8080/share" +#https://alfresco.atlassian.net/browse/ACS-5832 +# community_test_tomcat_deployment: +# name: "Test Tomcat deployment" +# runs-on: ubuntu-latest +# if: > +# !contains(github.event.head_commit.message, '[skip tests]') +# steps: +# - uses: actions/checkout@v3 +# with: +# persist-credentials: false +# - uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v1.35.2 +# - uses: Alfresco/alfresco-build-tools/.github/actions/free-hosted-runner-disk-space@v1.35.2 +# - uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v1.35.2 +# - name: "Build" +# timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }} +# run: | +# bash ./scripts/ci/init.sh +# bash ./scripts/ci/build.sh +# - name: "Set up the environment" +# run: | +# ${TAS_SCRIPTS}/start-compose.sh ./dev/docker-compose.yml +# ${TAS_SCRIPTS}/wait-for-alfresco-start.sh "http://localhost:8983/solr" +# - name: "Run tomcat, verify it starts" +# id: tests +# run: | +# (mvn clean install -Prun -rf dev &) +# ${TAS_SCRIPTS}/wait-for-alfresco-start.sh "http://localhost:8080/alfresco/" +# echo "Test Alfresco Repository availability" +# curl -Ls -o /dev/null --fail "http://localhost:8080/alfresco" +# echo "Test Share availability" +# curl -Ls -o /dev/null --fail "http://localhost:8080/share" docker_latest: name: Update latest Docker images diff --git a/dev/dev-acs-amps-overlay/pom.xml b/dev/dev-acs-amps-overlay/pom.xml index 57f601be0..971caab0e 100644 --- a/dev/dev-acs-amps-overlay/pom.xml +++ b/dev/dev-acs-amps-overlay/pom.xml @@ -63,7 +63,7 @@ cargo-maven3-plugin - tomcat9x + tomcat10x embedded target/cargo.log diff --git a/pom.xml b/pom.xml index 7ea6c99b9..b81d1ba91 100644 --- a/pom.xml +++ b/pom.xml @@ -15,7 +15,7 @@ 23.1.0.187 23.1.0.190 - 23.1.0-A28 + 23.1.0-A27 ${dependency.alfresco-community-repo.version} ${dependency.alfresco-community-share.version} diff --git a/scripts/ci/build.sh b/scripts/ci/build.sh index 693413040..4d0da924e 100755 --- a/scripts/ci/build.sh +++ b/scripts/ci/build.sh @@ -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