diff --git a/.travis.yml b/.travis.yml index 4f59a421c..a4702ab6d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,6 @@ --- dist: xenial +sudo: required language: java jdk: openjdk11 @@ -20,17 +21,17 @@ before_cache: bash scripts/travis/cleanup_cache.sh branches: only: - master - - develop - /release\/.*/ - - feature/REPO-5111_repo_build + - /feature\/.*/ + - /fix\/.*/ env: global: - TAS_SCRIPTS=../alfresco-community-repo/packaging/tests/scripts - TAS_ENVIRONMENT=./tests/environment - # Must be in the format - ie. 6.3.0-repo-xxxx-x or 6.3.0-Ax - - RELEASE_VERSION=7.0.0-TEST4 - - DEVELOPMENT_VERSION=7.0.0-TEST5-SNAPSHOT + # Release version has to start with real version (7.0.0-....) for the docker image to build successfully. + - RELEASE_VERSION=7.0.0-A9 + - DEVELOPMENT_VERSION=7.0.0-SNAPSHOT stages: - name: test @@ -38,26 +39,15 @@ stages: - name: docker_latest if: fork = false AND type != pull_request AND branch = master - name: release - if: commit_message ~= /\[release\]/ AND fork = false AND type != pull_request AND (branch =~ ^(master|develop)$ OR branch =~ /release\/.*/) + if: commit_message =~ /\[release\]/ AND fork = false AND type != pull_request AND (branch = master OR branch =~ /release\/.*/) - name: publish - if: commit_message ~= /\[publish\]/ AND fork = false AND type != pull_request AND (branch =~ ^(master|develop)$ OR branch =~ /release\/.*/) + if: commit_message =~ /\[publish\]/ AND fork = false AND type != pull_request AND (branch = master OR branch =~ /release\/.*/) before_install: travis_retry bash scripts/travis/init.sh install: travis_retry travis_wait 40 bash scripts/travis/build.sh jobs: include: - - name: "WhiteSource scan" - stage: test - # only on master or develop and if it is not a PR - if: fork = false AND branch =~ ^(master|develop)$ AND type != pull_request - install: travis_retry travis_wait 30 mvn -B -q install -f war/pom.xml - script: - # Download the latest version of WhiteSource Unified Agent - - curl -LJO https://github.com/whitesource/unified-agent-distribution/releases/latest/download/wss-unified-agent.jar - # Run WhiteSource Unified Agent - - java -jar wss-unified-agent.jar -apiKey ${WHITESOURCE_API_KEY} -c .wss-unified-agent.config -d ./war - - name: "REST API TAS tests part1" before_script: - ${TAS_SCRIPTS}/start-compose.sh ${TAS_ENVIRONMENT}/docker-compose-minimal+transforms.yml @@ -111,10 +101,10 @@ jobs: stage: docker_latest script: travis_retry travis_wait 30 mvn -B -V clean install -DskipTests -Dmaven.javadoc.skip=true -Pinternal - - name: "Release and Copy to S3 Staging" + - name: "Release and Copy to S3 Staging Bucket" stage: release before_script: bash scripts/travis/verify_release_tag.sh - script: travis_wait 40 bash scripts/travis/maven_release.sh + script: travis_wait 60 bash scripts/travis/maven_release.sh before_deploy: # Move the final artifacts to a single folder (deploy_dir) to be copied to S3 - mkdir -p deploy_dir @@ -132,8 +122,10 @@ jobs: upload_dir: "alfresco-content-services-community/release/${TRAVIS_BRANCH}/${TRAVIS_BUILD_NUMBER}" on: all_branches: true + after_deploy: + - echo "Finished release and deployed to https://s3.console.aws.amazon.com/s3/buckets/alfresco-artefacts-staging/alfresco-content-services/release/${TRAVIS_BRANCH}/${TRAVIS_BUILD_NUMBER}" - - name: "Copy to S3 Release" + - name: "Copy to S3 Release Bucket" stage: publish # Nothing to build/install as we are just copying from S3 buckets install: skip diff --git a/distribution/pom.xml b/distribution/pom.xml index ba846f6cd..44a9797f6 100644 --- a/distribution/pom.xml +++ b/distribution/pom.xml @@ -7,7 +7,7 @@ org.alfresco acs-community-packaging - 7.0.0-TEST5-SNAPSHOT + 7.0.0-SNAPSHOT @@ -117,6 +117,7 @@ default-resources + true @@ -124,7 +125,7 @@ - org.apache.maven.plugins @@ -132,7 +133,7 @@ unpack-licenses-and-keystore - validate + generate-resources unpack @@ -184,9 +185,11 @@ + copy-resources-war - generate-resources + + package copy diff --git a/distribution/src/assembly/distribution.xml b/distribution/src/assembly/distribution.xml index e1d5d3da9..f0ff97be9 100644 --- a/distribution/src/assembly/distribution.xml +++ b/distribution/src/assembly/distribution.xml @@ -2,6 +2,7 @@ xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd"> distribution + false zip diff --git a/docker-alfresco/pom.xml b/docker-alfresco/pom.xml index 34be74fe7..e7f50e8e2 100644 --- a/docker-alfresco/pom.xml +++ b/docker-alfresco/pom.xml @@ -7,86 +7,15 @@ org.alfresco acs-community-packaging - 7.0.0-TEST5-SNAPSHOT + 7.0.0-SNAPSHOT alfresco/alfresco-content-repository-community - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - org.apache.maven.plugins - maven-resources-plugin - - - copy-licenses - process-resources - - copy-resources - - - - - - ../distribution/src/main/resources/licenses - false - - - ${project.build.directory}/licenses - - - - org.apache.maven.plugins maven-dependency-plugin @@ -99,13 +28,6 @@ - - - - - - - org.alfresco api-explorer @@ -113,50 +35,9 @@ war ${project.build.directory}/war/api-explorer - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - copy-amps process-resources @@ -252,16 +133,6 @@ - - - ${image.name}:${image.tag} - - ${project.basedir}/ - - true - - - diff --git a/pom.xml b/pom.xml index 3c1e1cf6e..92a9cbe64 100644 --- a/pom.xml +++ b/pom.xml @@ -2,14 +2,14 @@ 4.0.0 acs-community-packaging Alfresco Content Services Community Packaging - 7.0.0-TEST5-SNAPSHOT + 7.0.0-SNAPSHOT pom org.alfresco alfresco-community-repo ../alfresco-community-repo/pom.xml - 8.300-TEST6 + 8.304 @@ -31,13 +31,14 @@ - 8.300-TEST6 + 8.304 ${dependency.alfresco-community-repo.version} + ${alfresco.share.version} - 7.0.0-A1 - 7.0.0-A1 - 7.0.0-A1 + 7.0.0-A4 + 7.0.0-A4 + 7.0.0-M1 diff --git a/public-javadoc/pom.xml b/public-javadoc/pom.xml index f1d899a8b..9af6647af 100644 --- a/public-javadoc/pom.xml +++ b/public-javadoc/pom.xml @@ -5,7 +5,7 @@ org.alfresco acs-community-packaging - 7.0.0-TEST5-SNAPSHOT + 7.0.0-SNAPSHOT pom diff --git a/tests/environment/.env b/tests/environment/.env index 5aeaff53d..6d4607b1c 100644 --- a/tests/environment/.env +++ b/tests/environment/.env @@ -1,4 +1,4 @@ -TRANSFORMERS_TAG=2.3.4 -SOLR6_TAG=1.4.2 +TRANSFORMERS_TAG=2.3.5 +SOLR6_TAG=2.0.0 POSTGRES_TAG=11.7 ACTIVEMQ_TAG=5.15.8 diff --git a/tests/pom.xml b/tests/pom.xml index 1d5552020..8dd565316 100644 --- a/tests/pom.xml +++ b/tests/pom.xml @@ -6,7 +6,7 @@ org.alfresco acs-community-packaging - 7.0.0-TEST5-SNAPSHOT + 7.0.0-SNAPSHOT diff --git a/tests/tas-cmis/pom.xml b/tests/tas-cmis/pom.xml index e85288ff0..31dfbf954 100644 --- a/tests/tas-cmis/pom.xml +++ b/tests/tas-cmis/pom.xml @@ -9,7 +9,7 @@ org.alfresco content-repository-community-tests - 7.0.0-TEST5-SNAPSHOT + 7.0.0-SNAPSHOT diff --git a/tests/tas-email/pom.xml b/tests/tas-email/pom.xml index acaec0438..e6932aa10 100644 --- a/tests/tas-email/pom.xml +++ b/tests/tas-email/pom.xml @@ -9,7 +9,7 @@ org.alfresco content-repository-community-tests - 7.0.0-TEST5-SNAPSHOT + 7.0.0-SNAPSHOT diff --git a/tests/tas-integration/pom.xml b/tests/tas-integration/pom.xml index 5e8bb4116..dd0455180 100644 --- a/tests/tas-integration/pom.xml +++ b/tests/tas-integration/pom.xml @@ -9,7 +9,7 @@ org.alfresco content-repository-community-tests - 7.0.0-TEST5-SNAPSHOT + 7.0.0-SNAPSHOT diff --git a/tests/tas-restapi/pom.xml b/tests/tas-restapi/pom.xml index 57eef2b9c..03192a9ce 100644 --- a/tests/tas-restapi/pom.xml +++ b/tests/tas-restapi/pom.xml @@ -9,7 +9,7 @@ org.alfresco content-repository-community-tests - 7.0.0-TEST5-SNAPSHOT + 7.0.0-SNAPSHOT diff --git a/tests/tas-webdav/pom.xml b/tests/tas-webdav/pom.xml index 6f2f1bc98..94bd0fadc 100644 --- a/tests/tas-webdav/pom.xml +++ b/tests/tas-webdav/pom.xml @@ -9,7 +9,7 @@ org.alfresco content-repository-community-tests - 7.0.0-TEST5-SNAPSHOT + 7.0.0-SNAPSHOT