mirror of
				https://github.com/Alfresco/alfresco-community-repo.git
				synced 2025-10-29 15:21:53 +00:00 
			
		
		
		
	Compare commits
	
		
			142 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					b461f384ff | ||
| 
						 | 
					9ed4658d69 | ||
| 
						 | 
					0f4d2a8e28 | ||
| 
						 | 
					bc1197cc46 | ||
| 
						 | 
					d07a47d088 | ||
| 
						 | 
					94cb9de79b | ||
| 
						 | 
					841735491d | ||
| 
						 | 
					42e29d95de | ||
| 
						 | 
					5749a1a67a | ||
| 
						 | 
					9dce05cb5b | ||
| 
						 | 
					f06f2edaa1 | ||
| 
						 | 
					24e685b70e | ||
| 
						 | 
					e603f7882f | ||
| 
						 | 
					683e73e687 | ||
| 
						 | 
					15fe18ca9f | ||
| 
						 | 
					ce47b25fd8 | ||
| 
						 | 
					cc3d965414 | ||
| 
						 | 
					9ee412df04 | ||
| 
						 | 
					e9a0a31c84 | ||
| 
						 | 
					7dd8aef46c | ||
| 
						 | 
					4e14c2cbd7 | ||
| 
						 | 
					b618ea7e06 | ||
| 
						 | 
					f67a08c7e3 | ||
| 
						 | 
					1a3d59dfa1 | ||
| 
						 | 
					1b6d8af497 | ||
| 
						 | 
					c4c910b13e | ||
| 
						 | 
					e9af1baa86 | ||
| 
						 | 
					7927c7a119 | ||
| 
						 | 
					3a5c47babb | ||
| 
						 | 
					7f6c503434 | ||
| 
						 | 
					18acbf65dc | ||
| 
						 | 
					50b7d83495 | ||
| 
						 | 
					c9f64210e4 | ||
| 
						 | 
					4bbf264cdc | ||
| 
						 | 
					7c21ec298d | ||
| 
						 | 
					85d7fccf11 | ||
| 
						 | 
					e51457d535 | ||
| 
						 | 
					f5bbdd7ead | ||
| 
						 | 
					8885e91a58 | ||
| 
						 | 
					d652244292 | ||
| 
						 | 
					f04ca4b77f | ||
| 
						 | 
					ad2b107afd | ||
| 
						 | 
					75f68c612e | ||
| 
						 | 
					d3ff57bffc | ||
| 
						 | 
					82efc2e564 | ||
| 
						 | 
					af3e6f6009 | ||
| 
						 | 
					457bb5b469 | ||
| 
						 | 
					0f70ac9eba | ||
| 
						 | 
					2bff9eeb00 | ||
| 
						 | 
					46b3021541 | ||
| 
						 | 
					614884a4f6 | ||
| 
						 | 
					615759f148 | ||
| 
						 | 
					d323e7e3aa | ||
| 
						 | 
					fee2a75049 | ||
| 
						 | 
					35b2d64876 | ||
| 
						 | 
					115260470c | ||
| 
						 | 
					16727dce57 | ||
| 
						 | 
					670ff0de10 | ||
| 
						 | 
					e93ea3bcce | ||
| 
						 | 
					f70743ed33 | ||
| 
						 | 
					95ba57d06f | ||
| 
						 | 
					cb165c67b1 | ||
| 
						 | 
					ca276a9e82 | ||
| 
						 | 
					c7f6e876dd | ||
| 
						 | 
					b6131b3dd3 | ||
| 
						 | 
					54b96280fc | ||
| 
						 | 
					48fa7748f1 | ||
| 
						 | 
					5f6795eff0 | ||
| 
						 | 
					e9c87493d0 | ||
| 
						 | 
					440582d176 | ||
| 
						 | 
					9353865c25 | ||
| 
						 | 
					f58ca49b06 | ||
| 
						 | 
					f6382f28d3 | ||
| 
						 | 
					50652a4fab | ||
| 
						 | 
					93adf7515a | ||
| 
						 | 
					d6fb3814ab | ||
| 
						 | 
					93c1ee9cbf | ||
| 
						 | 
					5c82775afb | ||
| 
						 | 
					3535801e5c | ||
| 
						 | 
					9d537e6158 | ||
| 
						 | 
					f783d4bbc1 | ||
| 
						 | 
					ff18fba533 | ||
| 
						 | 
					a093a10484 | ||
| 
						 | 
					f9ca64bb51 | ||
| 
						 | 
					08cbc94ee7 | ||
| 
						 | 
					22b9179961 | ||
| 
						 | 
					eec1596872 | ||
| 
						 | 
					ffe31c2a6a | ||
| 
						 | 
					da4bd743e1 | ||
| 
						 | 
					b1f4b5fa93 | ||
| 
						 | 
					f166fef906 | ||
| 
						 | 
					29470674ce | ||
| 
						 | 
					9eefea8904 | ||
| 
						 | 
					01a4b7886b | ||
| 
						 | 
					79445d40fc | ||
| 
						 | 
					448687294d | ||
| 
						 | 
					56d374a915 | ||
| 
						 | 
					94b33bf7a9 | ||
| 
						 | 
					c53d71fc75 | ||
| 
						 | 
					eff1ab0744 | ||
| 
						 | 
					196e37e8d9 | ||
| 
						 | 
					9886d4afe3 | ||
| 
						 | 
					9105056738 | ||
| 
						 | 
					a8484b3644 | ||
| 
						 | 
					e53377947e | ||
| 
						 | 
					77d67d4ed9 | ||
| 
						 | 
					b5bd2be96e | ||
| 
						 | 
					770acdba38 | ||
| 
						 | 
					1f3b024a28 | ||
| 
						 | 
					bf72cbf0b0 | ||
| 
						 | 
					5c1ec44387 | ||
| 
						 | 
					c536f53293 | ||
| 
						 | 
					b056e166cc | ||
| 
						 | 
					87bfcdbadd | ||
| 
						 | 
					62e09bd1ac | ||
| 
						 | 
					c9e7d798e5 | ||
| 
						 | 
					8762148a68 | ||
| 
						 | 
					04af833ba6 | ||
| 
						 | 
					5b6f56a2ef | ||
| 
						 | 
					ea60259b36 | ||
| 
						 | 
					a050488d8e | ||
| 
						 | 
					0dde0315f1 | ||
| 
						 | 
					42da3ee691 | ||
| 
						 | 
					8d15375874 | ||
| 
						 | 
					18a39ac0fd | ||
| 
						 | 
					ad9bce3812 | ||
| 
						 | 
					0401246d96 | ||
| 
						 | 
					bdce8a0329 | ||
| 
						 | 
					a4417a0ebf | ||
| 
						 | 
					905b34e64b | ||
| 
						 | 
					a05c8c6634 | ||
| 
						 | 
					8781d82216 | ||
| 
						 | 
					9be2a90f81 | ||
| 
						 | 
					d56e53c0ef | ||
| 
						 | 
					4ccb22acbb | ||
| 
						 | 
					f3c45a13dd | ||
| 
						 | 
					5f24b4c3cd | ||
| 
						 | 
					f7c07c30f5 | ||
| 
						 | 
					a0ae0dd4ec | ||
| 
						 | 
					bbd7c46ddd | ||
| 
						 | 
					87c0fa228e | ||
| 
						 | 
					72182f4ef5 | 
							
								
								
									
										557
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										557
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,557 @@
 | 
				
			|||||||
 | 
					name: Alfresco Community Repo CI
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					on:
 | 
				
			||||||
 | 
					  pull_request:
 | 
				
			||||||
 | 
					  push:
 | 
				
			||||||
 | 
					    branches:
 | 
				
			||||||
 | 
					#      - feature/**
 | 
				
			||||||
 | 
					      - fix/**
 | 
				
			||||||
 | 
					  workflow_call:
 | 
				
			||||||
 | 
					  workflow_dispatch:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					env:
 | 
				
			||||||
 | 
					  DOCKERHUB_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
 | 
				
			||||||
 | 
					  DOCKERHUB_USERNAME: ${{ secrets.DOCKER_USERNAME }}
 | 
				
			||||||
 | 
					  GITHUB_ACTIONS_DEPLOY_TIMEOUT: 60
 | 
				
			||||||
 | 
					  LOG_WARN: "-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn"
 | 
				
			||||||
 | 
					  MAVEN_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
 | 
				
			||||||
 | 
					  MAVEN_USERNAME: ${{ secrets.NEXUS_USERNAME }}
 | 
				
			||||||
 | 
					  QUAY_PASSWORD: ${{ secrets.QUAY_PASSWORD }}
 | 
				
			||||||
 | 
					  QUAY_USERNAME: ${{ secrets.QUAY_USERNAME }}
 | 
				
			||||||
 | 
					  TAS_ENVIRONMENT: ./packaging/tests/environment
 | 
				
			||||||
 | 
					  TAS_SCRIPTS: ../alfresco-community-repo/packaging/tests/scripts
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					jobs:
 | 
				
			||||||
 | 
					  prepare:
 | 
				
			||||||
 | 
					    name: "Prepare"
 | 
				
			||||||
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					    if: >
 | 
				
			||||||
 | 
					      ! contains(github.event.head_commit.message, '[skip tests]') &&
 | 
				
			||||||
 | 
					      ! contains(github.event.head_commit.message, '[force]')
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					      - uses: actions/checkout@v3
 | 
				
			||||||
 | 
					      - uses: Alfresco/alfresco-build-tools/.github/actions/get-branch-name@v1.23.0
 | 
				
			||||||
 | 
					      - uses: Alfresco/acs-community-packaging/.github/actions/get-build-info@feature/ACS-3844_migrate-to-GHA
 | 
				
			||||||
 | 
					      - uses: Alfresco/acs-community-packaging/.github/actions/setup-build-tools@feature/ACS-3844_migrate-to-GHA
 | 
				
			||||||
 | 
					      - name: "Prepare environment"
 | 
				
			||||||
 | 
					        run: bash ./scripts/ci/prepare.sh
 | 
				
			||||||
 | 
					      - name: "Clean Maven cache"
 | 
				
			||||||
 | 
					        if: ${{ always() }}
 | 
				
			||||||
 | 
					        run: bash ./scripts/ci/cleanup_cache.sh
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  veracode:
 | 
				
			||||||
 | 
					    name: "Source Clear Scan (SCA)"
 | 
				
			||||||
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					    needs: [prepare]
 | 
				
			||||||
 | 
					    if: >
 | 
				
			||||||
 | 
					      (github.ref_name == 'master' || contains(github.ref_name, 'release/') || github.event_name != 'pull_request') &&
 | 
				
			||||||
 | 
					      ! contains(github.event.head_commit.message, '[skip tests]') &&
 | 
				
			||||||
 | 
					      ! contains(github.event.head_commit.message, '[force]')
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					      - uses: actions/checkout@v3
 | 
				
			||||||
 | 
					      - uses: Alfresco/alfresco-build-tools/.github/actions/get-branch-name@v1.23.0
 | 
				
			||||||
 | 
					      - uses: Alfresco/acs-community-packaging/.github/actions/get-build-info@feature/ACS-3844_migrate-to-GHA
 | 
				
			||||||
 | 
					      - name: Cache local Maven repository
 | 
				
			||||||
 | 
					        uses: actions/cache@v2
 | 
				
			||||||
 | 
					        with:
 | 
				
			||||||
 | 
					          path: ~/.m2/repository
 | 
				
			||||||
 | 
					          key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
 | 
				
			||||||
 | 
					          restore-keys: |
 | 
				
			||||||
 | 
					            ${{ runner.os }}-maven-
 | 
				
			||||||
 | 
					      - uses: Alfresco/alfresco-build-tools/.github/actions/veracode@master
 | 
				
			||||||
 | 
					        with:
 | 
				
			||||||
 | 
					          srcclr-api-token: ${{ secrets.SRCCLR_API_TOKEN }}
 | 
				
			||||||
 | 
					      - name: "Clean Maven cache"
 | 
				
			||||||
 | 
					        if: ${{ always() }}
 | 
				
			||||||
 | 
					        run: bash ./scripts/ci/cleanup_cache.sh
 | 
				
			||||||
 | 
					        
 | 
				
			||||||
 | 
					  all_unit_tests_suite:
 | 
				
			||||||
 | 
					    name: "Core, Data-Model, Repository - AllUnitTestsSuite - Build and test"
 | 
				
			||||||
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					    needs: [prepare]
 | 
				
			||||||
 | 
					    if: >
 | 
				
			||||||
 | 
					      ! contains(github.event.head_commit.message, '[skip repo]') &&
 | 
				
			||||||
 | 
					      ! contains(github.event.head_commit.message, '[skip tests]') &&
 | 
				
			||||||
 | 
					      ! contains(github.event.head_commit.message, '[force]')
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					      - uses: actions/checkout@v3
 | 
				
			||||||
 | 
					      - uses: Alfresco/alfresco-build-tools/.github/actions/get-branch-name@v1.23.0
 | 
				
			||||||
 | 
					      - uses: Alfresco/acs-community-packaging/.github/actions/get-build-info@feature/ACS-3844_migrate-to-GHA
 | 
				
			||||||
 | 
					      - uses: Alfresco/acs-community-packaging/.github/actions/setup-build-tools@feature/ACS-3844_migrate-to-GHA
 | 
				
			||||||
 | 
					      - name: "Run tests"
 | 
				
			||||||
 | 
					        run: |
 | 
				
			||||||
 | 
					          mvn -B test -pl core,data-model -am -DfailIfNoTests=false
 | 
				
			||||||
 | 
					          mvn -B test -pl "repository,mmt" -am "-Dtest=AllUnitTestsSuite,AllMmtUnitTestSuite" -DfailIfNoTests=false
 | 
				
			||||||
 | 
					      - name: "Clean Maven cache"
 | 
				
			||||||
 | 
					        if: ${{ always() }}
 | 
				
			||||||
 | 
					        run: bash ./scripts/ci/cleanup_cache.sh
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  remote_api_app_context_test_suites:
 | 
				
			||||||
 | 
					    name: Remote-api - ${{ matrix.testSuite }}
 | 
				
			||||||
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					    needs: [prepare]
 | 
				
			||||||
 | 
					    if: >
 | 
				
			||||||
 | 
					      ! contains(github.event.head_commit.message, '[skip repo]') &&
 | 
				
			||||||
 | 
					      ! contains(github.event.head_commit.message, '[skip tests]') &&
 | 
				
			||||||
 | 
					      ! contains(github.event.head_commit.message, '[force]')
 | 
				
			||||||
 | 
					    strategy:
 | 
				
			||||||
 | 
					      fail-fast: false
 | 
				
			||||||
 | 
					      matrix:
 | 
				
			||||||
 | 
					        include:
 | 
				
			||||||
 | 
					          - testSuite: AppContext01TestSuite
 | 
				
			||||||
 | 
					            compose-profile: default
 | 
				
			||||||
 | 
					          - testSuite: AppContext02TestSuite
 | 
				
			||||||
 | 
					            compose-profile: with-transform-core-aio
 | 
				
			||||||
 | 
					          - testSuite: AppContext03TestSuite
 | 
				
			||||||
 | 
					            compose-profile: with-transform-core-aio
 | 
				
			||||||
 | 
					          - testSuite: AppContext04TestSuite
 | 
				
			||||||
 | 
					            compose-profile: with-transform-core-aio
 | 
				
			||||||
 | 
					          - testSuite: AppContextExtraTestSuite
 | 
				
			||||||
 | 
					            compose-profile: default
 | 
				
			||||||
 | 
					    env:
 | 
				
			||||||
 | 
					      REQUIRES_INSTALLED_ARTIFACTS: true
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					      - uses: actions/checkout@v3
 | 
				
			||||||
 | 
					      - uses: Alfresco/alfresco-build-tools/.github/actions/get-branch-name@v1.23.0
 | 
				
			||||||
 | 
					      - uses: Alfresco/acs-community-packaging/.github/actions/get-build-info@feature/ACS-3844_migrate-to-GHA
 | 
				
			||||||
 | 
					      - uses: Alfresco/acs-community-packaging/.github/actions/setup-build-tools@feature/ACS-3844_migrate-to-GHA
 | 
				
			||||||
 | 
					      - name: "Build"
 | 
				
			||||||
 | 
					        timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
 | 
				
			||||||
 | 
					        run: |
 | 
				
			||||||
 | 
					          bash ./scripts/ci/init.sh
 | 
				
			||||||
 | 
					          bash ./scripts/ci/build.sh
 | 
				
			||||||
 | 
					      - name: "Set transformers tag"
 | 
				
			||||||
 | 
					        run: echo "TRANSFORMERS_TAG=$(mvn help:evaluate -Dexpression=dependency.alfresco-transform-core.version -q -DforceStdout)" >> $GITHUB_ENV
 | 
				
			||||||
 | 
					      - name: "Set up the environment"
 | 
				
			||||||
 | 
					        run: docker-compose -f ./scripts/ci/docker-compose/docker-compose.yaml --profile ${{ matrix.compose-profile }} up -d
 | 
				
			||||||
 | 
					      - name: "Run tests"
 | 
				
			||||||
 | 
					        run: mvn -B test -pl remote-api -Dtest=${{ matrix.testSuite }} -Ddb.driver=org.postgresql.Driver -Ddb.name=alfresco -Ddb.url=jdbc:postgresql://localhost:5433/alfresco -Ddb.username=alfresco -Ddb.password=alfresco
 | 
				
			||||||
 | 
					      - name: "Clean Maven cache"
 | 
				
			||||||
 | 
					        if: ${{ always() }}
 | 
				
			||||||
 | 
					        run: bash ./scripts/ci/cleanup_cache.sh
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  repository_mariadb_tests:
 | 
				
			||||||
 | 
					    name: Repository - MariaDB ${{ matrix.version }} tests
 | 
				
			||||||
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					    needs: [prepare]
 | 
				
			||||||
 | 
					    if: >
 | 
				
			||||||
 | 
					      (((github.ref_name == 'master' || contains(github.ref_name, 'release/')) &&
 | 
				
			||||||
 | 
					      github.event_name != 'pull_request' &&
 | 
				
			||||||
 | 
					      ! contains(github.event.head_commit.message, '[skip db]')) ||
 | 
				
			||||||
 | 
					      contains(github.event.head_commit.message, '[db]')) &&
 | 
				
			||||||
 | 
					      ! contains(github.event.head_commit.message, '[skip tests]') &&
 | 
				
			||||||
 | 
					      ! contains(github.event.head_commit.message, '[force]')
 | 
				
			||||||
 | 
					    strategy:
 | 
				
			||||||
 | 
					      fail-fast: false
 | 
				
			||||||
 | 
					      matrix:
 | 
				
			||||||
 | 
					        version: ['10.2.18', '10.4', '10.5']
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					      - uses: actions/checkout@v3
 | 
				
			||||||
 | 
					      - uses: Alfresco/alfresco-build-tools/.github/actions/get-branch-name@v1.23.0
 | 
				
			||||||
 | 
					      - uses: Alfresco/acs-community-packaging/.github/actions/get-build-info@feature/ACS-3844_migrate-to-GHA
 | 
				
			||||||
 | 
					      - uses: Alfresco/acs-community-packaging/.github/actions/setup-build-tools@feature/ACS-3844_migrate-to-GHA
 | 
				
			||||||
 | 
					      - name: "Set up the environment"
 | 
				
			||||||
 | 
					        run: docker-compose -f ./scripts/ci/docker-compose/docker-compose-db.yaml --profile mariadb up -d
 | 
				
			||||||
 | 
					        env:
 | 
				
			||||||
 | 
					          MARIADB_VERSION: ${{ matrix.version }}
 | 
				
			||||||
 | 
					      - name: "Run tests"
 | 
				
			||||||
 | 
					        run: mvn -B test -pl repository -am -Dtest=AllDBTestsTestSuite -DfailIfNoTests=false -Ddb.name=alfresco -Ddb.url=jdbc:mariadb://localhost:3307/alfresco?useUnicode=yes\&characterEncoding=UTF-8 -Ddb.username=alfresco -Ddb.password=alfresco -Ddb.driver=org.mariadb.jdbc.Driver
 | 
				
			||||||
 | 
					      - name: "Clean Maven cache"
 | 
				
			||||||
 | 
					        if: ${{ always() }}
 | 
				
			||||||
 | 
					        run: bash ./scripts/ci/cleanup_cache.sh
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  repository_mariadb_10_6_tests:
 | 
				
			||||||
 | 
					    name: "Repository - MariaDB 10.6 tests"
 | 
				
			||||||
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					    needs: [prepare]
 | 
				
			||||||
 | 
					    if: >
 | 
				
			||||||
 | 
					      (((github.ref_name == 'master' || contains(github.ref_name, 'release/') || github.event_name == 'pull_request') &&
 | 
				
			||||||
 | 
					      ! contains(github.event.head_commit.message, '[skip db]')) ||
 | 
				
			||||||
 | 
					      contains(github.event.head_commit.message, '[latest db]') ||
 | 
				
			||||||
 | 
					      contains(github.event.head_commit.message, '[db]')) &&
 | 
				
			||||||
 | 
					      ! contains(github.event.head_commit.message, '[skip tests]') &&
 | 
				
			||||||
 | 
					      ! contains(github.event.head_commit.message, '[force]')
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					      - uses: actions/checkout@v3
 | 
				
			||||||
 | 
					      - uses: Alfresco/alfresco-build-tools/.github/actions/get-branch-name@v1.23.0
 | 
				
			||||||
 | 
					      - uses: Alfresco/acs-community-packaging/.github/actions/get-build-info@feature/ACS-3844_migrate-to-GHA
 | 
				
			||||||
 | 
					      - uses: Alfresco/acs-community-packaging/.github/actions/setup-build-tools@feature/ACS-3844_migrate-to-GHA
 | 
				
			||||||
 | 
					      - name: "Set up the environment"
 | 
				
			||||||
 | 
					        run: docker-compose -f ./scripts/ci/docker-compose/docker-compose-db.yaml --profile mariadb up -d
 | 
				
			||||||
 | 
					        env:
 | 
				
			||||||
 | 
					          MARIADB_VERSION: 10.6
 | 
				
			||||||
 | 
					      - name: "Run tests"
 | 
				
			||||||
 | 
					        run: mvn -B test -pl repository -am -Dtest=AllDBTestsTestSuite -DfailIfNoTests=false -Ddb.name=alfresco -Ddb.url=jdbc:mariadb://localhost:3307/alfresco?useUnicode=yes\&characterEncoding=UTF-8 -Ddb.username=alfresco -Ddb.password=alfresco -Ddb.driver=org.mariadb.jdbc.Driver
 | 
				
			||||||
 | 
					      - name: "Clean Maven cache"
 | 
				
			||||||
 | 
					        if: ${{ always() }}
 | 
				
			||||||
 | 
					        run: bash ./scripts/ci/cleanup_cache.sh
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  repository_mysql_tests:
 | 
				
			||||||
 | 
					    name: Repository - MySQL 8 tests
 | 
				
			||||||
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					    needs: [prepare]
 | 
				
			||||||
 | 
					    if: >
 | 
				
			||||||
 | 
					      (((github.ref_name == 'master' || contains(github.ref_name, 'release/') || github.event_name == 'pull_request') &&
 | 
				
			||||||
 | 
					      ! contains(github.event.head_commit.message, '[skip db]')) ||
 | 
				
			||||||
 | 
					      contains(github.event.head_commit.message, '[latest db]') ||
 | 
				
			||||||
 | 
					      contains(github.event.head_commit.message, '[db]')) &&
 | 
				
			||||||
 | 
					      ! contains(github.event.head_commit.message, '[skip tests]') &&
 | 
				
			||||||
 | 
					      ! contains(github.event.head_commit.message, '[force]')
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					      - uses: actions/checkout@v3
 | 
				
			||||||
 | 
					      - uses: Alfresco/alfresco-build-tools/.github/actions/get-branch-name@v1.23.0
 | 
				
			||||||
 | 
					      - uses: Alfresco/acs-community-packaging/.github/actions/get-build-info@feature/ACS-3844_migrate-to-GHA
 | 
				
			||||||
 | 
					      - uses: Alfresco/acs-community-packaging/.github/actions/setup-build-tools@feature/ACS-3844_migrate-to-GHA
 | 
				
			||||||
 | 
					      - name: "Set up the environment"
 | 
				
			||||||
 | 
					        run: docker-compose -f ./scripts/ci/docker-compose/docker-compose-db.yaml --profile mysql up -d
 | 
				
			||||||
 | 
					        env:
 | 
				
			||||||
 | 
					          MYSQL_VERSION: 8
 | 
				
			||||||
 | 
					      - name: "Run tests"
 | 
				
			||||||
 | 
					        run: mvn -B test -pl repository -am -Dtest=AllDBTestsTestSuite -DfailIfNoTests=false -Ddb.driver=com.mysql.jdbc.Driver -Ddb.name=alfresco -Ddb.url=jdbc:mysql://localhost:3307/alfresco -Ddb.username=alfresco -Ddb.password=alfresco
 | 
				
			||||||
 | 
					      - name: "Clean Maven cache"
 | 
				
			||||||
 | 
					        if: ${{ always() }}
 | 
				
			||||||
 | 
					        run: bash ./scripts/ci/cleanup_cache.sh
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  repository_postgresql_13_7_tests:
 | 
				
			||||||
 | 
					    name: "Repository - PostgreSQL 13.7 tests"
 | 
				
			||||||
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					    needs: [prepare]
 | 
				
			||||||
 | 
					    if: >
 | 
				
			||||||
 | 
					      (((github.ref_name == 'master' || contains(github.ref_name, 'release/')) || github.event_name != 'pull_request' &&
 | 
				
			||||||
 | 
					      ! contains(github.event.head_commit.message, '[skip db]')) ||
 | 
				
			||||||
 | 
					      contains(github.event.head_commit.message, '[db]')) &&
 | 
				
			||||||
 | 
					      ! contains(github.event.head_commit.message, '[skip tests]') &&
 | 
				
			||||||
 | 
					      ! contains(github.event.head_commit.message, '[force]')
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					      - uses: actions/checkout@v3
 | 
				
			||||||
 | 
					      - uses: Alfresco/alfresco-build-tools/.github/actions/get-branch-name@v1.23.0
 | 
				
			||||||
 | 
					      - uses: Alfresco/acs-community-packaging/.github/actions/get-build-info@feature/ACS-3844_migrate-to-GHA
 | 
				
			||||||
 | 
					      - uses: Alfresco/acs-community-packaging/.github/actions/setup-build-tools@feature/ACS-3844_migrate-to-GHA
 | 
				
			||||||
 | 
					      - name: "Set up the environment"
 | 
				
			||||||
 | 
					        run: docker-compose -f ./scripts/ci/docker-compose/docker-compose-db.yaml --profile postgres up -d
 | 
				
			||||||
 | 
					        env:
 | 
				
			||||||
 | 
					          POSTGRES_VERSION: 10.6
 | 
				
			||||||
 | 
					      - name: "Run tests"
 | 
				
			||||||
 | 
					        run: mvn -B test -pl repository -am -Dtest=AllDBTestsTestSuite -DfailIfNoTests=false -Ddb.driver=org.postgresql.Driver -Ddb.name=alfresco -Ddb.url=jdbc:postgresql://localhost:5433/alfresco -Ddb.username=alfresco -Ddb.password=alfresco
 | 
				
			||||||
 | 
					      - name: "Clean Maven cache"
 | 
				
			||||||
 | 
					        if: ${{ always() }}
 | 
				
			||||||
 | 
					        run: bash ./scripts/ci/cleanup_cache.sh
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  repository_postgresql_14_4_tests:
 | 
				
			||||||
 | 
					    name: "Repository - PostgreSQL 14.4 tests"
 | 
				
			||||||
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					    needs: [prepare]
 | 
				
			||||||
 | 
					    if: >
 | 
				
			||||||
 | 
					      (((github.ref_name == 'master' || contains(github.ref_name, 'release/')) && github.event_name != 'pull_request' &&
 | 
				
			||||||
 | 
					      ! contains(github.event.head_commit.message, '[skip db]')) ||
 | 
				
			||||||
 | 
					      contains(github.event.head_commit.message, '[latest db]') ||
 | 
				
			||||||
 | 
					      contains(github.event.head_commit.message, '[db]')) &&
 | 
				
			||||||
 | 
					      ! contains(github.event.head_commit.message, '[skip tests]') &&
 | 
				
			||||||
 | 
					      ! contains(github.event.head_commit.message, '[force]')
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					      - uses: actions/checkout@v3
 | 
				
			||||||
 | 
					      - uses: Alfresco/alfresco-build-tools/.github/actions/get-branch-name@v1.23.0
 | 
				
			||||||
 | 
					      - uses: Alfresco/acs-community-packaging/.github/actions/get-build-info@feature/ACS-3844_migrate-to-GHA
 | 
				
			||||||
 | 
					      - uses: Alfresco/acs-community-packaging/.github/actions/setup-build-tools@feature/ACS-3844_migrate-to-GHA
 | 
				
			||||||
 | 
					      - name: "Set up the environment"
 | 
				
			||||||
 | 
					        run: docker-compose -f ./scripts/ci/docker-compose/docker-compose-db.yaml --profile postgres up -d
 | 
				
			||||||
 | 
					        env:
 | 
				
			||||||
 | 
					          POSTGRES_VERSION: 14.4
 | 
				
			||||||
 | 
					      - name: "Run tests"
 | 
				
			||||||
 | 
					        run: mvn -B test -pl repository -am -Dtest=AllDBTestsTestSuite -DfailIfNoTests=false -Ddb.driver=org.postgresql.Driver -Ddb.name=alfresco -Ddb.url=jdbc:postgresql://localhost:5433/alfresco -Ddb.username=alfresco -Ddb.password=alfresco
 | 
				
			||||||
 | 
					      - name: "Clean Maven cache"
 | 
				
			||||||
 | 
					        if: ${{ always() }}
 | 
				
			||||||
 | 
					        run: bash ./scripts/ci/cleanup_cache.sh
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  repository_messaging_tests:
 | 
				
			||||||
 | 
					    name: Repository - Messaging tests
 | 
				
			||||||
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					    needs: [prepare]
 | 
				
			||||||
 | 
					    if: >
 | 
				
			||||||
 | 
					      ! contains(github.event.head_commit.message, '[skip repo]') &&
 | 
				
			||||||
 | 
					      ! contains(github.event.head_commit.message, '[skip tests]') &&
 | 
				
			||||||
 | 
					      ! contains(github.event.head_commit.message, '[force]')
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					      - uses: actions/checkout@v3
 | 
				
			||||||
 | 
					      - uses: Alfresco/alfresco-build-tools/.github/actions/get-branch-name@v1.23.0
 | 
				
			||||||
 | 
					      - uses: Alfresco/acs-community-packaging/.github/actions/get-build-info@feature/ACS-3844_migrate-to-GHA
 | 
				
			||||||
 | 
					      - uses: Alfresco/acs-community-packaging/.github/actions/setup-build-tools@feature/ACS-3844_migrate-to-GHA
 | 
				
			||||||
 | 
					      - name: "Set up the environment"
 | 
				
			||||||
 | 
					        run: docker-compose -f ./scripts/ci/docker-compose/docker-compose.yaml --profile activemq up -d
 | 
				
			||||||
 | 
					      - name: "Run tests"
 | 
				
			||||||
 | 
					        run: mvn -B test -pl repository -am -Dtest=CamelRoutesTest,CamelComponentsTest -DfailIfNoTests=false
 | 
				
			||||||
 | 
					      - name: "Clean Maven cache"
 | 
				
			||||||
 | 
					        if: ${{ always() }}
 | 
				
			||||||
 | 
					        run: bash ./scripts/ci/cleanup_cache.sh
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  repository_app_context_test_suites:
 | 
				
			||||||
 | 
					    name: Repository - ${{ matrix.testSuite }}
 | 
				
			||||||
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					    needs: [prepare]
 | 
				
			||||||
 | 
					    if: >
 | 
				
			||||||
 | 
					      ! contains(github.event.head_commit.message, '[skip repo]') &&
 | 
				
			||||||
 | 
					      ! contains(github.event.head_commit.message, '[skip tests]') &&
 | 
				
			||||||
 | 
					      ! contains(github.event.head_commit.message, '[force]')
 | 
				
			||||||
 | 
					    strategy:
 | 
				
			||||||
 | 
					      fail-fast: false
 | 
				
			||||||
 | 
					      matrix:
 | 
				
			||||||
 | 
					        include:
 | 
				
			||||||
 | 
					          - testSuite: AppContext01TestSuite
 | 
				
			||||||
 | 
					            compose-profile: with-transform-core-aio
 | 
				
			||||||
 | 
					          - testSuite: AppContext02TestSuite
 | 
				
			||||||
 | 
					            compose-profile: default
 | 
				
			||||||
 | 
					          - testSuite: AppContext03TestSuite
 | 
				
			||||||
 | 
					            compose-profile: with-transform-core-aio
 | 
				
			||||||
 | 
					          - testSuite: AppContext04TestSuite
 | 
				
			||||||
 | 
					            compose-profile: with-transform-core-aio
 | 
				
			||||||
 | 
					          - testSuite: AppContext05TestSuite
 | 
				
			||||||
 | 
					            compose-profile: default
 | 
				
			||||||
 | 
					            parameters: '"-Didentity-service.auth-server-url=http://${HOST_IP}:8999/auth"'
 | 
				
			||||||
 | 
					          - testSuite: AppContext06TestSuite
 | 
				
			||||||
 | 
					            compose-profile: with-transform-core-aio
 | 
				
			||||||
 | 
					          - testSuite: AppContextExtraTestSuite
 | 
				
			||||||
 | 
					            compose-profile: with-transform-core-aio
 | 
				
			||||||
 | 
					          - testSuite: MiscContextTestSuite
 | 
				
			||||||
 | 
					            compose-profile: with-transform-core-aio
 | 
				
			||||||
 | 
					          - testSuite: SearchTestSuite
 | 
				
			||||||
 | 
					            compose-profile: default
 | 
				
			||||||
 | 
					            parameters: '-Dindex.subsystem.name=solr6'
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					      - uses: actions/checkout@v3
 | 
				
			||||||
 | 
					      - uses: Alfresco/alfresco-build-tools/.github/actions/get-branch-name@v1.23.0
 | 
				
			||||||
 | 
					      - uses: Alfresco/acs-community-packaging/.github/actions/get-build-info@feature/ACS-3844_migrate-to-GHA
 | 
				
			||||||
 | 
					      - uses: Alfresco/acs-community-packaging/.github/actions/setup-build-tools@feature/ACS-3844_migrate-to-GHA
 | 
				
			||||||
 | 
					      - name: "Set up IDS"
 | 
				
			||||||
 | 
					        run: |
 | 
				
			||||||
 | 
					          if [ "${{ matrix.testSuite }}" == 'AppContext05TestSuite' ];
 | 
				
			||||||
 | 
					          then
 | 
				
			||||||
 | 
					            mkdir -p "${HOME}/tmp"
 | 
				
			||||||
 | 
					            cp repository/src/test/resources/realms/alfresco-realm.json "${HOME}/tmp"
 | 
				
			||||||
 | 
					            echo "HOST_IP=$(hostname  -I | cut -f1 -d' ')" >> $GITHUB_ENV
 | 
				
			||||||
 | 
					            docker run -d -e KEYCLOAK_USER=admin -e KEYCLOAK_PASSWORD=admin -e DB_VENDOR=h2 -p 8999:8080 -e KEYCLOAK_IMPORT=/tmp/alfresco-realm.json -v $HOME/tmp/alfresco-realm.json:/tmp/alfresco-realm.json alfresco/alfresco-identity-service:1.2
 | 
				
			||||||
 | 
					          fi
 | 
				
			||||||
 | 
					      - name: "Set transformers tag"
 | 
				
			||||||
 | 
					        run: echo "TRANSFORMERS_TAG=$(mvn help:evaluate -Dexpression=dependency.alfresco-transform-core.version -q -DforceStdout)" >> $GITHUB_ENV
 | 
				
			||||||
 | 
					      - name: "Set up the environment"
 | 
				
			||||||
 | 
					        run: docker-compose -f ./scripts/ci/docker-compose/docker-compose.yaml --profile ${{ matrix.compose-profile }} up -d
 | 
				
			||||||
 | 
					      - name: "Run tests"
 | 
				
			||||||
 | 
					        run: mvn -B test -pl repository -am -Dtest=${{ matrix.testSuite }} -DfailIfNoTests=false -Ddb.driver=org.postgresql.Driver -Ddb.name=alfresco -Ddb.url=jdbc:postgresql://localhost:5433/alfresco -Ddb.username=alfresco -Ddb.password=alfresco ${{ matrix.parameters }}
 | 
				
			||||||
 | 
					      - name: "Clean Maven cache"
 | 
				
			||||||
 | 
					        if: ${{ always() }}
 | 
				
			||||||
 | 
					        run: bash ./scripts/ci/cleanup_cache.sh
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  tas-tests:
 | 
				
			||||||
 | 
					    name: ${{ matrix.test-name }}
 | 
				
			||||||
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					    needs: [prepare]
 | 
				
			||||||
 | 
					    if: >
 | 
				
			||||||
 | 
					      (((github.ref_name == 'master' || contains(github.ref_name, 'release/') || github.event_name == 'pull_request' ) &&
 | 
				
			||||||
 | 
					      ! contains(github.event.head_commit.message, '[skip tas]')) ||
 | 
				
			||||||
 | 
					      contains(github.event.head_commit.message, '[tas]')) &&
 | 
				
			||||||
 | 
					      ! contains(github.event.head_commit.message, '[skip tests]') &&
 | 
				
			||||||
 | 
					      ! contains(github.event.head_commit.message, '[force]')
 | 
				
			||||||
 | 
					    strategy:
 | 
				
			||||||
 | 
					      fail-fast: false
 | 
				
			||||||
 | 
					      matrix:
 | 
				
			||||||
 | 
					        include:
 | 
				
			||||||
 | 
					          - test-name: "REST API TAS tests part1"
 | 
				
			||||||
 | 
					            pom-dir: tas-restapi
 | 
				
			||||||
 | 
					            test-profile: run-restapi-part1
 | 
				
			||||||
 | 
					          - test-name: "REST API TAS tests part2"
 | 
				
			||||||
 | 
					            pom-dir: tas-restapi
 | 
				
			||||||
 | 
					            test-profile: run-restapi-part2
 | 
				
			||||||
 | 
					          - test-name: "REST API TAS tests part3"
 | 
				
			||||||
 | 
					            pom-dir: tas-restapi
 | 
				
			||||||
 | 
					            test-profile: run-restapi-part3
 | 
				
			||||||
 | 
					          - test-name: "CMIS TAS tests - BROWSER binding"
 | 
				
			||||||
 | 
					            pom-dir: tas-cmis
 | 
				
			||||||
 | 
					            test-profile: run-cmis-browser
 | 
				
			||||||
 | 
					          - test-name: "CMIS TAS tests - ATOM binding"
 | 
				
			||||||
 | 
					            pom-dir: tas-cmis
 | 
				
			||||||
 | 
					            test-profile: run-cmis-atom
 | 
				
			||||||
 | 
					          - test-name: "CMIS TAS tests - WEBSERVICES binding"
 | 
				
			||||||
 | 
					            pom-dir: tas-cmis
 | 
				
			||||||
 | 
					            test-profile: run-cmis-webservices
 | 
				
			||||||
 | 
					          - test-name: "Email TAS tests"
 | 
				
			||||||
 | 
					            pom-dir: tas-email
 | 
				
			||||||
 | 
					          - test-name: "WebDAV TAS tests"
 | 
				
			||||||
 | 
					            pom-dir: tas-webdav
 | 
				
			||||||
 | 
					          - test-name: "Integration TAS tests"
 | 
				
			||||||
 | 
					            pom-dir: tas-integration
 | 
				
			||||||
 | 
					    env:
 | 
				
			||||||
 | 
					      REQUIRES_LOCAL_IMAGES: true
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					      - uses: actions/checkout@v3
 | 
				
			||||||
 | 
					      - uses: Alfresco/alfresco-build-tools/.github/actions/get-branch-name@v1.23.0
 | 
				
			||||||
 | 
					      - uses: Alfresco/acs-community-packaging/.github/actions/get-build-info@feature/ACS-3844_migrate-to-GHA
 | 
				
			||||||
 | 
					      - uses: Alfresco/acs-community-packaging/.github/actions/setup-build-tools@feature/ACS-3844_migrate-to-GHA
 | 
				
			||||||
 | 
					      - 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: |
 | 
				
			||||||
 | 
					          ${{ env.TAS_SCRIPTS }}/start-compose.sh ${{ env.TAS_ENVIRONMENT }}/docker-compose-minimal+transforms.yml
 | 
				
			||||||
 | 
					          ${{ env.TAS_SCRIPTS }}/wait-for-alfresco-start.sh "http://localhost:8082/alfresco"
 | 
				
			||||||
 | 
					      - name: "Set up the environment for integration tests"
 | 
				
			||||||
 | 
					        run: |
 | 
				
			||||||
 | 
					          if [ "${{ matrix.test-name }}" == 'Integration TAS tests' ];
 | 
				
			||||||
 | 
					          then
 | 
				
			||||||
 | 
					            mvn install -pl :alfresco-community-repo-integration-test -am -DskipTests -Pall-tas-tests
 | 
				
			||||||
 | 
					          fi
 | 
				
			||||||
 | 
					      - name: "Run tests"
 | 
				
			||||||
 | 
					        id: tests
 | 
				
			||||||
 | 
					        timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
 | 
				
			||||||
 | 
					        run: mvn -B verify -f packaging/tests/${{ matrix.pom-dir }}/pom.xml -Pall-tas-tests,${{ matrix.test-profile }} -Denvironment=default -DrunBugs=false
 | 
				
			||||||
 | 
					      - name: "After success"
 | 
				
			||||||
 | 
					        if: ${{ always() }} && outcome.tests.outcome == 'success'
 | 
				
			||||||
 | 
					        run: ${TAS_SCRIPTS}/output_tests_run.sh "packaging/tests/${{ matrix.pom-dir }}"
 | 
				
			||||||
 | 
					        continue-on-error: true
 | 
				
			||||||
 | 
					      - name: "After failure"
 | 
				
			||||||
 | 
					        if: ${{ always() }} && outcome.tests.outcome == 'failure'
 | 
				
			||||||
 | 
					        run: ${TAS_SCRIPTS}/output_logs_for_failures.sh "packaging/tests/${{ matrix.pom-dir }}"
 | 
				
			||||||
 | 
					      - name: "Clean Maven cache"
 | 
				
			||||||
 | 
					        if: ${{ always() }}
 | 
				
			||||||
 | 
					        run: bash ./scripts/ci/cleanup_cache.sh
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  share_services_share_services_test_suite:
 | 
				
			||||||
 | 
					    name: Share Services - ShareServicesTestSuite
 | 
				
			||||||
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					    needs: [prepare]
 | 
				
			||||||
 | 
					    if: >
 | 
				
			||||||
 | 
					      ! contains(github.event.head_commit.message, '[skip repo]') &&
 | 
				
			||||||
 | 
					      ! contains(github.event.head_commit.message, '[skip tests]') &&
 | 
				
			||||||
 | 
					      ! contains(github.event.head_commit.message, '[force]')
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					      - uses: actions/checkout@v3
 | 
				
			||||||
 | 
					      - uses: Alfresco/alfresco-build-tools/.github/actions/get-branch-name@v1.23.0
 | 
				
			||||||
 | 
					      - uses: Alfresco/acs-community-packaging/.github/actions/get-build-info@feature/ACS-3844_migrate-to-GHA
 | 
				
			||||||
 | 
					      - uses: Alfresco/acs-community-packaging/.github/actions/setup-build-tools@feature/ACS-3844_migrate-to-GHA
 | 
				
			||||||
 | 
					      - name: "Set up the environment"
 | 
				
			||||||
 | 
					        run: docker-compose -f ./scripts/ci/docker-compose/docker-compose.yaml --profile postgres up -d
 | 
				
			||||||
 | 
					      - name: "Run tests"
 | 
				
			||||||
 | 
					        run: mvn -B test -pl :alfresco-share-services -am -Dtest=ShareServicesTestSuite -DfailIfNoTests=false -Ddb.driver=org.postgresql.Driver -Ddb.name=alfresco -Ddb.url=jdbc:postgresql://localhost:5433/alfresco -Ddb.username=alfresco -Ddb.password=alfresco
 | 
				
			||||||
 | 
					      - name: "Clean Maven cache"
 | 
				
			||||||
 | 
					        if: ${{ always() }}
 | 
				
			||||||
 | 
					        run: bash ./scripts/ci/cleanup_cache.sh
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  ags_tests_postgressql:
 | 
				
			||||||
 | 
					    name: AGS Unit & Integration Tests 0${{ matrix.part }} (PostgreSQL) ${{ matrix.test-name }}
 | 
				
			||||||
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					    needs: [prepare]
 | 
				
			||||||
 | 
					    if: >
 | 
				
			||||||
 | 
					      (((github.ref_name == 'master' || contains(github.ref_name, 'release/') || github.event_name == 'pull_request' ) &&
 | 
				
			||||||
 | 
					      ! contains(github.event.head_commit.message, '[skip ags]')) ||
 | 
				
			||||||
 | 
					      contains(github.event.head_commit.message, '[ags]')) &&
 | 
				
			||||||
 | 
					      ! contains(github.event.head_commit.message, '[skip tests]') &&
 | 
				
			||||||
 | 
					      ! contains(github.event.head_commit.message, '[force]')
 | 
				
			||||||
 | 
					    strategy:
 | 
				
			||||||
 | 
					      fail-fast: false
 | 
				
			||||||
 | 
					      matrix:
 | 
				
			||||||
 | 
					        part: [1, 2, 3, 4]
 | 
				
			||||||
 | 
					    env:
 | 
				
			||||||
 | 
					      REQUIRES_INSTALLED_ARTIFACTS: true
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					      - uses: actions/checkout@v3
 | 
				
			||||||
 | 
					      - uses: Alfresco/alfresco-build-tools/.github/actions/get-branch-name@v1.23.0
 | 
				
			||||||
 | 
					      - uses: Alfresco/acs-community-packaging/.github/actions/get-build-info@feature/ACS-3844_migrate-to-GHA
 | 
				
			||||||
 | 
					      - uses: Alfresco/acs-community-packaging/.github/actions/setup-build-tools@feature/ACS-3844_migrate-to-GHA
 | 
				
			||||||
 | 
					      - name: "Build"
 | 
				
			||||||
 | 
					        timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
 | 
				
			||||||
 | 
					        run: |
 | 
				
			||||||
 | 
					          bash ./scripts/ci/init.sh
 | 
				
			||||||
 | 
					          bash ./scripts/ci/build.sh
 | 
				
			||||||
 | 
					      - name: "Verify"
 | 
				
			||||||
 | 
					        timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
 | 
				
			||||||
 | 
					        run: mvn --file amps/ags/pom.xml -B verify -Dmaven.javadoc.skip=true -Dmaven.source.skip=true -Pags -Pstart-postgres -PagsAllTestSuitePt${{ matrix.part }} ${{ env.LOG_WARN }}
 | 
				
			||||||
 | 
					      - name: "Clean Maven cache"
 | 
				
			||||||
 | 
					        if: ${{ always() }}
 | 
				
			||||||
 | 
					        run: bash ./scripts/ci/cleanup_cache.sh
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  ags_tests_mysql:
 | 
				
			||||||
 | 
					    name: AGS Unit & Integration Tests 0${{ matrix.part }} (PostgreSQL) ${{ matrix.test-name }}
 | 
				
			||||||
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					    needs: [prepare]
 | 
				
			||||||
 | 
					    if: >
 | 
				
			||||||
 | 
					      (((github.ref_name == 'master' || contains(github.ref_name, 'release/') || github.event_name == 'pull_request' ) &&
 | 
				
			||||||
 | 
					      ! contains(github.event.head_commit.message, '[skip ags]')) ||
 | 
				
			||||||
 | 
					      contains(github.event.head_commit.message, '[ags on MySQL]')) &&
 | 
				
			||||||
 | 
					      ! contains(github.event.head_commit.message, '[skip tests]') &&
 | 
				
			||||||
 | 
					      ! contains(github.event.head_commit.message, '[force]')
 | 
				
			||||||
 | 
					    strategy:
 | 
				
			||||||
 | 
					      fail-fast: false
 | 
				
			||||||
 | 
					      matrix:
 | 
				
			||||||
 | 
					        part: [1, 2, 3, 4]
 | 
				
			||||||
 | 
					    env:
 | 
				
			||||||
 | 
					      REQUIRES_INSTALLED_ARTIFACTS: true
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					      - uses: actions/checkout@v3
 | 
				
			||||||
 | 
					      - uses: Alfresco/alfresco-build-tools/.github/actions/get-branch-name@v1.23.0
 | 
				
			||||||
 | 
					      - uses: Alfresco/acs-community-packaging/.github/actions/get-build-info@feature/ACS-3844_migrate-to-GHA
 | 
				
			||||||
 | 
					      - uses: Alfresco/acs-community-packaging/.github/actions/setup-build-tools@feature/ACS-3844_migrate-to-GHA
 | 
				
			||||||
 | 
					      - name: "Build"
 | 
				
			||||||
 | 
					        timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
 | 
				
			||||||
 | 
					        run: |
 | 
				
			||||||
 | 
					          bash ./scripts/ci/init.sh
 | 
				
			||||||
 | 
					          bash ./scripts/ci/build.sh
 | 
				
			||||||
 | 
					      - name: "Verify"
 | 
				
			||||||
 | 
					        timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
 | 
				
			||||||
 | 
					        run: mvn --file amps/ags/pom.xml -B verify -Dmaven.javadoc.skip=true -Dmaven.source.skip=true -Pags -Pstart-mysql -PagsAllTestSuitePt${{ matrix.part }} ${{ env.LOG_WARN }}
 | 
				
			||||||
 | 
					      - name: "Clean Maven cache"
 | 
				
			||||||
 | 
					        if: ${{ always() }}
 | 
				
			||||||
 | 
					        run: bash ./scripts/ci/cleanup_cache.sh
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  ags_community_rest_api_tests:
 | 
				
			||||||
 | 
					    name: "AGS Community Rest API Tests"
 | 
				
			||||||
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					    needs: [prepare]
 | 
				
			||||||
 | 
					    if: >
 | 
				
			||||||
 | 
					      (((github.ref_name == 'master' || contains(github.ref_name, 'release/') || github.event_name == 'pull_request' ) &&
 | 
				
			||||||
 | 
					      ! contains(github.event.head_commit.message, '[skip ags]') && ! contains(github.event.head_commit.message, '[skip tas]')) ||
 | 
				
			||||||
 | 
					      (contains(github.event.head_commit.message, '[ags]') && contains(github.event.head_commit.message, '[tas]'))) &&
 | 
				
			||||||
 | 
					      ! contains(github.event.head_commit.message, '[skip tests]') &&
 | 
				
			||||||
 | 
					      ! contains(github.event.head_commit.message, '[force]')
 | 
				
			||||||
 | 
					    env:
 | 
				
			||||||
 | 
					      REQUIRES_LOCAL_IMAGES: true
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					      - uses: actions/checkout@v3
 | 
				
			||||||
 | 
					      - uses: Alfresco/alfresco-build-tools/.github/actions/get-branch-name@v1.23.0
 | 
				
			||||||
 | 
					      - uses: Alfresco/acs-community-packaging/.github/actions/get-build-info@feature/ACS-3844_migrate-to-GHA
 | 
				
			||||||
 | 
					      - uses: Alfresco/acs-community-packaging/.github/actions/setup-build-tools@feature/ACS-3844_migrate-to-GHA
 | 
				
			||||||
 | 
					      - 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"
 | 
				
			||||||
 | 
					        timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
 | 
				
			||||||
 | 
					        run: |
 | 
				
			||||||
 | 
					          ${{ env.TAS_SCRIPTS }}/start-compose.sh ./amps/ags/rm-community/rm-community-repo/docker-compose.yml
 | 
				
			||||||
 | 
					          ${{ env.TAS_SCRIPTS }}/wait-for-alfresco-start.sh "http://localhost:8080/alfresco"
 | 
				
			||||||
 | 
					          mvn -B install -pl :alfresco-governance-services-automation-community-rest-api -am -Pags -Pall-tas-tests -DskipTests
 | 
				
			||||||
 | 
					      - name: "Test"
 | 
				
			||||||
 | 
					        timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
 | 
				
			||||||
 | 
					        run: mvn -B test -pl :alfresco-governance-services-automation-community-rest-api -Dskip.automationtests=false -Pags -Pall-tas-tests
 | 
				
			||||||
 | 
					      - run: bash amps/ags/ci/scripts/getLogs.sh
 | 
				
			||||||
 | 
					        if: ${{ always() }}
 | 
				
			||||||
 | 
					      - shell: bash
 | 
				
			||||||
 | 
					        if: ${{ always() }}
 | 
				
			||||||
 | 
					        run: |
 | 
				
			||||||
 | 
					          mkdir -p deploy_dir/community/${{ github.run_number }}/AGS-Community-Rest-API-Tests
 | 
				
			||||||
 | 
					          mv "alfresco.log" "deploy_dir/community/${{ github.run_number }}/AGS-Community-Rest-API-Tests"
 | 
				
			||||||
 | 
					          mv "solr.log" "deploy_dir/community/${{ github.run_number }}/AGS-Community-Rest-API-Tests"
 | 
				
			||||||
 | 
					          mv "./amps/ags/rm-automation/rm-automation-community-rest-api/target/reports" "deploy_dir/community/${{ github.run_number }}/AGS-Community-Rest-API-Tests"
 | 
				
			||||||
 | 
					      - name: "Configure AWS credentials"
 | 
				
			||||||
 | 
					        if: ${{ always() }}
 | 
				
			||||||
 | 
					        uses: aws-actions/configure-aws-credentials@v1
 | 
				
			||||||
 | 
					        with:
 | 
				
			||||||
 | 
					          aws-access-key-id: ${{ secrets.AGS_AWS_ACCESS_KEY_ID }}
 | 
				
			||||||
 | 
					          aws-secret-access-key: ${{ secrets.AGS_AWS_SECRET_ACCESS_KEY }}
 | 
				
			||||||
 | 
					          aws-region: us-east-1
 | 
				
			||||||
 | 
					      - name: "Upload artifacts to Amazon S3 bucket"
 | 
				
			||||||
 | 
					        if: ${{ always() }}
 | 
				
			||||||
 | 
					        run: aws s3 cp --recursive ./deploy_dir s3://ags-travis-artifacts
 | 
				
			||||||
 | 
					      - name: "Clean Maven cache"
 | 
				
			||||||
 | 
					        if: ${{ always() }}
 | 
				
			||||||
 | 
					        run: bash ./scripts/ci/cleanup_cache.sh
 | 
				
			||||||
							
								
								
									
										63
									
								
								.github/workflows/master_release.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										63
									
								
								.github/workflows/master_release.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,63 @@
 | 
				
			|||||||
 | 
					name: Master/Release branch workflow
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					on:
 | 
				
			||||||
 | 
					  push:
 | 
				
			||||||
 | 
					    branches:
 | 
				
			||||||
 | 
					#      - master
 | 
				
			||||||
 | 
					#      - release/**
 | 
				
			||||||
 | 
					      - feature/ACS-3841_test_gha
 | 
				
			||||||
 | 
					jobs:
 | 
				
			||||||
 | 
					  run_ci:
 | 
				
			||||||
 | 
					    uses: ./.github/workflows/ci.yml
 | 
				
			||||||
 | 
					    secrets: inherit
 | 
				
			||||||
 | 
					  push_to_nexus:
 | 
				
			||||||
 | 
					    name: "Push to Nexus"
 | 
				
			||||||
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					    needs: [run_ci]
 | 
				
			||||||
 | 
					    if: >
 | 
				
			||||||
 | 
					      always() &&
 | 
				
			||||||
 | 
					      (needs.run_ci.result == 'skipped' || needs.run_ci.result == 'success')
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					      - uses: actions/checkout@v3
 | 
				
			||||||
 | 
					      - uses: Alfresco/alfresco-build-tools/.github/actions/get-branch-name@v1.23.0
 | 
				
			||||||
 | 
					      - uses: Alfresco/acs-community-packaging/.github/actions/get-build-info@feature/ACS-3844_migrate-to-GHA
 | 
				
			||||||
 | 
					      - uses: Alfresco/acs-community-packaging/.github/actions/setup-build-tools@feature/ACS-3844_migrate-to-GHA
 | 
				
			||||||
 | 
					      - uses: Alfresco/alfresco-build-tools/.github/actions/configure-git-author@v1.12.0
 | 
				
			||||||
 | 
					        with:
 | 
				
			||||||
 | 
					          username: ${{ secrets.BOT_GITHUB_USERNAME }}
 | 
				
			||||||
 | 
					          email: ${{ secrets.BOT_GITHUB_EMAIL }}
 | 
				
			||||||
 | 
					      - name: "Verify release tag"
 | 
				
			||||||
 | 
					        run: bash ./scripts/ci/verify_release_tag.sh
 | 
				
			||||||
 | 
					      - name: "Release"
 | 
				
			||||||
 | 
					        run: bash ./scripts/ci/maven_release.sh
 | 
				
			||||||
 | 
					        env:
 | 
				
			||||||
 | 
					          BUILD_NUMBER: ${{ github.run_number }}
 | 
				
			||||||
 | 
					          GIT_USERNAME: ${{ secrets.BOT_GITHUB_USERNAME }}
 | 
				
			||||||
 | 
					          GIT_PASSWORD: ${{ secrets.BOT_GITHUB_PASSWORD }}
 | 
				
			||||||
 | 
					          GIT_EMAIL: ${{ secrets.BOT_GITHUB_TOKEN }}
 | 
				
			||||||
 | 
					      - name: "Clean Maven cache"
 | 
				
			||||||
 | 
					        if: ${{ always() }}
 | 
				
			||||||
 | 
					        run: bash ./scripts/ci/cleanup_cache.sh
 | 
				
			||||||
 | 
					  update_downstream:
 | 
				
			||||||
 | 
					    name: "Update alfresco-enterprise-repo"
 | 
				
			||||||
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					    needs: [run_ci, push_to_nexus]
 | 
				
			||||||
 | 
					    if: >
 | 
				
			||||||
 | 
					      always() &&
 | 
				
			||||||
 | 
					      (needs.run_ci.result == 'skipped' || needs.run_ci.result == 'success') &&
 | 
				
			||||||
 | 
					      (needs.push_to_nexus.result == 'success') &&
 | 
				
			||||||
 | 
					      (! contains(github.event.head_commit.message, '[no downstream]'))
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					      - uses: actions/checkout@v3
 | 
				
			||||||
 | 
					      - uses: Alfresco/alfresco-build-tools/.github/actions/get-branch-name@v1.23.0
 | 
				
			||||||
 | 
					      - uses: Alfresco/acs-community-packaging/.github/actions/get-build-info@feature/ACS-3844_migrate-to-GHA
 | 
				
			||||||
 | 
					      - uses: Alfresco/acs-community-packaging/.github/actions/setup-build-tools@feature/ACS-3844_migrate-to-GHA
 | 
				
			||||||
 | 
					      - run: bash ./scripts/ci/update_downstream.sh
 | 
				
			||||||
 | 
					        env:
 | 
				
			||||||
 | 
					          COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
 | 
				
			||||||
 | 
					          GIT_USERNAME: ${{ secrets.BOT_GITHUB_USERNAME }}
 | 
				
			||||||
 | 
					          GIT_PASSWORD: ${{ secrets.BOT_GITHUB_PASSWORD }}
 | 
				
			||||||
 | 
					          GIT_EMAIL: ${{ secrets.BOT_GITHUB_TOKEN }}
 | 
				
			||||||
 | 
					      - name: "Clean Maven cache"
 | 
				
			||||||
 | 
					        if: ${{ always() }}
 | 
				
			||||||
 | 
					        run: bash ./scripts/ci/cleanup_cache.sh
 | 
				
			||||||
@@ -19,10 +19,7 @@ before_cache: bash scripts/travis/cleanup_cache.sh
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
branches:
 | 
					branches:
 | 
				
			||||||
  only:
 | 
					  only:
 | 
				
			||||||
    - master
 | 
					    - none
 | 
				
			||||||
    - /release\/.*/
 | 
					 | 
				
			||||||
    - /feature\/.*/
 | 
					 | 
				
			||||||
    - /fix\/.*/
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
env:
 | 
					env:
 | 
				
			||||||
  global:
 | 
					  global:
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -7,7 +7,7 @@
 | 
				
			|||||||
   <parent>
 | 
					   <parent>
 | 
				
			||||||
      <groupId>org.alfresco</groupId>
 | 
					      <groupId>org.alfresco</groupId>
 | 
				
			||||||
      <artifactId>alfresco-community-repo-amps</artifactId>
 | 
					      <artifactId>alfresco-community-repo-amps</artifactId>
 | 
				
			||||||
      <version>20.41-SNAPSHOT</version>
 | 
					      <version>20.41-DEV</version>
 | 
				
			||||||
   </parent>
 | 
					   </parent>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
   <modules>
 | 
					   <modules>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -7,7 +7,7 @@
 | 
				
			|||||||
   <parent>
 | 
					   <parent>
 | 
				
			||||||
      <groupId>org.alfresco</groupId>
 | 
					      <groupId>org.alfresco</groupId>
 | 
				
			||||||
      <artifactId>alfresco-governance-services-community-parent</artifactId>
 | 
					      <artifactId>alfresco-governance-services-community-parent</artifactId>
 | 
				
			||||||
      <version>20.41-SNAPSHOT</version>
 | 
					      <version>20.41-DEV</version>
 | 
				
			||||||
   </parent>
 | 
					   </parent>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
   <modules>
 | 
					   <modules>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -7,7 +7,7 @@
 | 
				
			|||||||
   <parent>
 | 
					   <parent>
 | 
				
			||||||
      <groupId>org.alfresco</groupId>
 | 
					      <groupId>org.alfresco</groupId>
 | 
				
			||||||
      <artifactId>alfresco-governance-services-automation-community-repo</artifactId>
 | 
					      <artifactId>alfresco-governance-services-automation-community-repo</artifactId>
 | 
				
			||||||
      <version>20.41-SNAPSHOT</version>
 | 
					      <version>20.41-DEV</version>
 | 
				
			||||||
   </parent>
 | 
					   </parent>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
   <build>
 | 
					   <build>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -0,0 +1,46 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					 * #%L
 | 
				
			||||||
 | 
					 * Alfresco Records Management Module
 | 
				
			||||||
 | 
					 * %%
 | 
				
			||||||
 | 
					 * Copyright (C) 2005 - 2022 Alfresco Software Limited
 | 
				
			||||||
 | 
					 * %%
 | 
				
			||||||
 | 
					 * This file is part of the Alfresco software.
 | 
				
			||||||
 | 
					 * -
 | 
				
			||||||
 | 
					 * If the software was purchased under a paid Alfresco license, the terms of
 | 
				
			||||||
 | 
					 * the paid license agreement will prevail.  Otherwise, the software is
 | 
				
			||||||
 | 
					 * provided under the following open source license terms:
 | 
				
			||||||
 | 
					 * -
 | 
				
			||||||
 | 
					 * Alfresco is free software: you can redistribute it and/or modify
 | 
				
			||||||
 | 
					 * it under the terms of the GNU Lesser General Public License as published by
 | 
				
			||||||
 | 
					 * the Free Software Foundation, either version 3 of the License, or
 | 
				
			||||||
 | 
					 * (at your option) any later version.
 | 
				
			||||||
 | 
					 * -
 | 
				
			||||||
 | 
					 * Alfresco is distributed in the hope that it will be useful,
 | 
				
			||||||
 | 
					 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
				
			||||||
 | 
					 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
				
			||||||
 | 
					 * GNU Lesser General Public License for more details.
 | 
				
			||||||
 | 
					 * -
 | 
				
			||||||
 | 
					 * You should have received a copy of the GNU Lesser General Public License
 | 
				
			||||||
 | 
					 * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
 | 
				
			||||||
 | 
					 * #L%
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
 | 
					package org.alfresco.rest.rm.community.utils;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import java.util.Comparator;
 | 
				
			||||||
 | 
					import java.util.List;
 | 
				
			||||||
 | 
					import java.util.stream.Collectors;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import org.testng.IMethodInstance;
 | 
				
			||||||
 | 
					import org.testng.IMethodInterceptor;
 | 
				
			||||||
 | 
					import org.testng.ITestContext;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					public class AlphabeticallyPriorityInterceptor implements IMethodInterceptor
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					    @Override
 | 
				
			||||||
 | 
					    public List<IMethodInstance> intercept(List<IMethodInstance> methods,
 | 
				
			||||||
 | 
					        ITestContext context)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        return methods.stream().sorted(Comparator.comparing(el -> el.getMethod().getTestClass().toString()))
 | 
				
			||||||
 | 
					            .collect(Collectors.toList());
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -1,7 +1,10 @@
 | 
				
			|||||||
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" >
 | 
					<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" >
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<suite name="TestNG AllTestSuite" configfailurepolicy="continue" verbose="1" time-out="300000">
 | 
					<suite name="TestNG AllTestSuite" configfailurepolicy="continue" verbose="1" time-out="300000">
 | 
				
			||||||
   <test name="restapi">
 | 
					   <listeners>
 | 
				
			||||||
 | 
					      <listener class-name="org.alfresco.rest.rm.community.utils.AlphabeticallyPriorityInterceptor" />
 | 
				
			||||||
 | 
					   </listeners>
 | 
				
			||||||
 | 
					   <test name="restapi" preserve-order="false">
 | 
				
			||||||
      <packages>
 | 
					      <packages>
 | 
				
			||||||
         <package name="org.alfresco.rest.rm.community.*"/>
 | 
					         <package name="org.alfresco.rest.rm.community.*"/>
 | 
				
			||||||
      </packages>
 | 
					      </packages>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -7,7 +7,7 @@
 | 
				
			|||||||
   <parent>
 | 
					   <parent>
 | 
				
			||||||
      <groupId>org.alfresco</groupId>
 | 
					      <groupId>org.alfresco</groupId>
 | 
				
			||||||
      <artifactId>alfresco-governance-services-community-parent</artifactId>
 | 
					      <artifactId>alfresco-governance-services-community-parent</artifactId>
 | 
				
			||||||
      <version>20.41-SNAPSHOT</version>
 | 
					      <version>20.41-DEV</version>
 | 
				
			||||||
   </parent>
 | 
					   </parent>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
   <modules>
 | 
					   <modules>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -8,7 +8,7 @@
 | 
				
			|||||||
   <parent>
 | 
					   <parent>
 | 
				
			||||||
      <groupId>org.alfresco</groupId>
 | 
					      <groupId>org.alfresco</groupId>
 | 
				
			||||||
      <artifactId>alfresco-governance-services-community-repo-parent</artifactId>
 | 
					      <artifactId>alfresco-governance-services-community-repo-parent</artifactId>
 | 
				
			||||||
      <version>20.41-SNAPSHOT</version>
 | 
					      <version>20.41-DEV</version>
 | 
				
			||||||
   </parent>
 | 
					   </parent>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
   <properties>
 | 
					   <properties>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -7,7 +7,7 @@
 | 
				
			|||||||
    <parent>
 | 
					    <parent>
 | 
				
			||||||
        <groupId>org.alfresco</groupId>
 | 
					        <groupId>org.alfresco</groupId>
 | 
				
			||||||
        <artifactId>alfresco-governance-services-community-repo-parent</artifactId>
 | 
					        <artifactId>alfresco-governance-services-community-repo-parent</artifactId>
 | 
				
			||||||
        <version>20.41-SNAPSHOT</version>
 | 
					        <version>20.41-DEV</version>
 | 
				
			||||||
    </parent>
 | 
					    </parent>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <build>
 | 
					    <build>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -7,7 +7,7 @@
 | 
				
			|||||||
    <parent>
 | 
					    <parent>
 | 
				
			||||||
        <groupId>org.alfresco</groupId>
 | 
					        <groupId>org.alfresco</groupId>
 | 
				
			||||||
        <artifactId>alfresco-community-repo</artifactId>
 | 
					        <artifactId>alfresco-community-repo</artifactId>
 | 
				
			||||||
        <version>20.41-SNAPSHOT</version>
 | 
					        <version>20.41-DEV</version>
 | 
				
			||||||
    </parent>
 | 
					    </parent>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <modules>
 | 
					    <modules>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -8,7 +8,7 @@
 | 
				
			|||||||
    <parent>
 | 
					    <parent>
 | 
				
			||||||
        <groupId>org.alfresco</groupId>
 | 
					        <groupId>org.alfresco</groupId>
 | 
				
			||||||
        <artifactId>alfresco-community-repo-amps</artifactId>
 | 
					        <artifactId>alfresco-community-repo-amps</artifactId>
 | 
				
			||||||
        <version>20.41-SNAPSHOT</version>
 | 
					        <version>20.41-DEV</version>
 | 
				
			||||||
    </parent>
 | 
					    </parent>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <properties>
 | 
					    <properties>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -7,7 +7,7 @@
 | 
				
			|||||||
   <parent>
 | 
					   <parent>
 | 
				
			||||||
      <groupId>org.alfresco</groupId>
 | 
					      <groupId>org.alfresco</groupId>
 | 
				
			||||||
      <artifactId>alfresco-community-repo</artifactId>
 | 
					      <artifactId>alfresco-community-repo</artifactId>
 | 
				
			||||||
      <version>20.41-SNAPSHOT</version>
 | 
					      <version>20.41-DEV</version>
 | 
				
			||||||
   </parent>
 | 
					   </parent>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
   <dependencies>
 | 
					   <dependencies>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -7,7 +7,7 @@
 | 
				
			|||||||
    <parent>
 | 
					    <parent>
 | 
				
			||||||
        <groupId>org.alfresco</groupId>
 | 
					        <groupId>org.alfresco</groupId>
 | 
				
			||||||
        <artifactId>alfresco-community-repo</artifactId>
 | 
					        <artifactId>alfresco-community-repo</artifactId>
 | 
				
			||||||
        <version>20.41-SNAPSHOT</version>
 | 
					        <version>20.41-DEV</version>
 | 
				
			||||||
    </parent>
 | 
					    </parent>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <properties>
 | 
					    <properties>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -7,7 +7,7 @@
 | 
				
			|||||||
    <parent>
 | 
					    <parent>
 | 
				
			||||||
        <groupId>org.alfresco</groupId>
 | 
					        <groupId>org.alfresco</groupId>
 | 
				
			||||||
        <artifactId>alfresco-community-repo</artifactId>
 | 
					        <artifactId>alfresco-community-repo</artifactId>
 | 
				
			||||||
        <version>20.41-SNAPSHOT</version>
 | 
					        <version>20.41-DEV</version>
 | 
				
			||||||
    </parent>
 | 
					    </parent>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <dependencies>
 | 
					    <dependencies>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -9,6 +9,6 @@
 | 
				
			|||||||
    <parent>
 | 
					    <parent>
 | 
				
			||||||
        <groupId>org.alfresco</groupId>
 | 
					        <groupId>org.alfresco</groupId>
 | 
				
			||||||
        <artifactId>alfresco-community-repo-packaging</artifactId>
 | 
					        <artifactId>alfresco-community-repo-packaging</artifactId>
 | 
				
			||||||
        <version>20.41-SNAPSHOT</version>
 | 
					        <version>20.41-DEV</version>
 | 
				
			||||||
    </parent>
 | 
					    </parent>
 | 
				
			||||||
</project>
 | 
					</project>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -7,7 +7,7 @@
 | 
				
			|||||||
    <parent>
 | 
					    <parent>
 | 
				
			||||||
        <groupId>org.alfresco</groupId>
 | 
					        <groupId>org.alfresco</groupId>
 | 
				
			||||||
        <artifactId>alfresco-community-repo-packaging</artifactId>
 | 
					        <artifactId>alfresco-community-repo-packaging</artifactId>
 | 
				
			||||||
        <version>20.41-SNAPSHOT</version>
 | 
					        <version>20.41-DEV</version>
 | 
				
			||||||
    </parent>
 | 
					    </parent>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <properties>
 | 
					    <properties>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -7,7 +7,7 @@
 | 
				
			|||||||
    <parent>
 | 
					    <parent>
 | 
				
			||||||
        <groupId>org.alfresco</groupId>
 | 
					        <groupId>org.alfresco</groupId>
 | 
				
			||||||
        <artifactId>alfresco-community-repo</artifactId>
 | 
					        <artifactId>alfresco-community-repo</artifactId>
 | 
				
			||||||
        <version>20.41-SNAPSHOT</version>
 | 
					        <version>20.41-DEV</version>
 | 
				
			||||||
    </parent>
 | 
					    </parent>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <modules>
 | 
					    <modules>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -6,7 +6,7 @@
 | 
				
			|||||||
    <parent>
 | 
					    <parent>
 | 
				
			||||||
        <groupId>org.alfresco</groupId>
 | 
					        <groupId>org.alfresco</groupId>
 | 
				
			||||||
        <artifactId>alfresco-community-repo-packaging</artifactId>
 | 
					        <artifactId>alfresco-community-repo-packaging</artifactId>
 | 
				
			||||||
        <version>20.41-SNAPSHOT</version>
 | 
					        <version>20.41-DEV</version>
 | 
				
			||||||
    </parent>
 | 
					    </parent>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <modules>
 | 
					    <modules>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -7,7 +7,7 @@
 | 
				
			|||||||
    <parent>
 | 
					    <parent>
 | 
				
			||||||
        <groupId>org.alfresco</groupId>
 | 
					        <groupId>org.alfresco</groupId>
 | 
				
			||||||
        <artifactId>alfresco-community-repo-tests</artifactId>
 | 
					        <artifactId>alfresco-community-repo-tests</artifactId>
 | 
				
			||||||
        <version>20.41-SNAPSHOT</version>
 | 
					        <version>20.41-DEV</version>
 | 
				
			||||||
    </parent>
 | 
					    </parent>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <organization>
 | 
					    <organization>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -9,7 +9,7 @@
 | 
				
			|||||||
    <parent>
 | 
					    <parent>
 | 
				
			||||||
        <groupId>org.alfresco</groupId>
 | 
					        <groupId>org.alfresco</groupId>
 | 
				
			||||||
        <artifactId>alfresco-community-repo-tests</artifactId>
 | 
					        <artifactId>alfresco-community-repo-tests</artifactId>
 | 
				
			||||||
        <version>20.41-SNAPSHOT</version>
 | 
					        <version>20.41-DEV</version>
 | 
				
			||||||
    </parent>
 | 
					    </parent>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <developers>
 | 
					    <developers>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -9,7 +9,7 @@
 | 
				
			|||||||
    <parent>
 | 
					    <parent>
 | 
				
			||||||
        <groupId>org.alfresco</groupId>
 | 
					        <groupId>org.alfresco</groupId>
 | 
				
			||||||
        <artifactId>alfresco-community-repo-tests</artifactId>
 | 
					        <artifactId>alfresco-community-repo-tests</artifactId>
 | 
				
			||||||
        <version>20.41-SNAPSHOT</version>
 | 
					        <version>20.41-DEV</version>
 | 
				
			||||||
    </parent>
 | 
					    </parent>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <developers>
 | 
					    <developers>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -8,7 +8,7 @@
 | 
				
			|||||||
    <parent>
 | 
					    <parent>
 | 
				
			||||||
        <groupId>org.alfresco</groupId>
 | 
					        <groupId>org.alfresco</groupId>
 | 
				
			||||||
        <artifactId>alfresco-community-repo-tests</artifactId>
 | 
					        <artifactId>alfresco-community-repo-tests</artifactId>
 | 
				
			||||||
        <version>20.41-SNAPSHOT</version>
 | 
					        <version>20.41-DEV</version>
 | 
				
			||||||
    </parent>
 | 
					    </parent>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <properties>
 | 
					    <properties>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -9,7 +9,7 @@
 | 
				
			|||||||
    <parent>
 | 
					    <parent>
 | 
				
			||||||
        <groupId>org.alfresco</groupId>
 | 
					        <groupId>org.alfresco</groupId>
 | 
				
			||||||
        <artifactId>alfresco-community-repo-tests</artifactId>
 | 
					        <artifactId>alfresco-community-repo-tests</artifactId>
 | 
				
			||||||
        <version>20.41-SNAPSHOT</version>
 | 
					        <version>20.41-DEV</version>
 | 
				
			||||||
    </parent>
 | 
					    </parent>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <developers>
 | 
					    <developers>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -7,7 +7,7 @@
 | 
				
			|||||||
    <parent>
 | 
					    <parent>
 | 
				
			||||||
        <groupId>org.alfresco</groupId>
 | 
					        <groupId>org.alfresco</groupId>
 | 
				
			||||||
        <artifactId>alfresco-community-repo-packaging</artifactId>
 | 
					        <artifactId>alfresco-community-repo-packaging</artifactId>
 | 
				
			||||||
        <version>20.41-SNAPSHOT</version>
 | 
					        <version>20.41-DEV</version>
 | 
				
			||||||
    </parent>
 | 
					    </parent>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <properties>
 | 
					    <properties>
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										4
									
								
								pom.xml
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								pom.xml
									
									
									
									
									
								
							@@ -2,7 +2,7 @@
 | 
				
			|||||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
 | 
					<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
 | 
				
			||||||
    <modelVersion>4.0.0</modelVersion>
 | 
					    <modelVersion>4.0.0</modelVersion>
 | 
				
			||||||
    <artifactId>alfresco-community-repo</artifactId>
 | 
					    <artifactId>alfresco-community-repo</artifactId>
 | 
				
			||||||
    <version>20.41-SNAPSHOT</version>
 | 
					    <version>20.41-DEV</version>
 | 
				
			||||||
    <packaging>pom</packaging>
 | 
					    <packaging>pom</packaging>
 | 
				
			||||||
    <name>Alfresco Community Repo Parent</name>
 | 
					    <name>Alfresco Community Repo Parent</name>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -148,7 +148,7 @@
 | 
				
			|||||||
        <connection>scm:git:https://github.com/Alfresco/alfresco-community-repo.git</connection>
 | 
					        <connection>scm:git:https://github.com/Alfresco/alfresco-community-repo.git</connection>
 | 
				
			||||||
        <developerConnection>scm:git:https://github.com/Alfresco/alfresco-community-repo.git</developerConnection>
 | 
					        <developerConnection>scm:git:https://github.com/Alfresco/alfresco-community-repo.git</developerConnection>
 | 
				
			||||||
        <url>https://github.com/Alfresco/alfresco-community-repo</url>
 | 
					        <url>https://github.com/Alfresco/alfresco-community-repo</url>
 | 
				
			||||||
        <tag>HEAD</tag>
 | 
					        <tag>20.41-DEV</tag>
 | 
				
			||||||
    </scm>
 | 
					    </scm>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <distributionManagement>
 | 
					    <distributionManagement>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -7,7 +7,7 @@
 | 
				
			|||||||
    <parent>
 | 
					    <parent>
 | 
				
			||||||
        <groupId>org.alfresco</groupId>
 | 
					        <groupId>org.alfresco</groupId>
 | 
				
			||||||
        <artifactId>alfresco-community-repo</artifactId>
 | 
					        <artifactId>alfresco-community-repo</artifactId>
 | 
				
			||||||
        <version>20.41-SNAPSHOT</version>
 | 
					        <version>20.41-DEV</version>
 | 
				
			||||||
    </parent>
 | 
					    </parent>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <dependencies>
 | 
					    <dependencies>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -7,7 +7,7 @@
 | 
				
			|||||||
    <parent>
 | 
					    <parent>
 | 
				
			||||||
        <groupId>org.alfresco</groupId>
 | 
					        <groupId>org.alfresco</groupId>
 | 
				
			||||||
        <artifactId>alfresco-community-repo</artifactId>
 | 
					        <artifactId>alfresco-community-repo</artifactId>
 | 
				
			||||||
        <version>20.41-SNAPSHOT</version>
 | 
					        <version>20.41-DEV</version>
 | 
				
			||||||
    </parent>
 | 
					    </parent>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <dependencies>
 | 
					    <dependencies>
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										20
									
								
								scripts/ci/build_functions.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								scripts/ci/build_functions.sh
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,20 @@
 | 
				
			|||||||
 | 
					#!/usr/bin/env bash
 | 
				
			||||||
 | 
					set +vx
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					function cloneRepo() {
 | 
				
			||||||
 | 
					  local REPO="${1}"
 | 
				
			||||||
 | 
					  local TAG_OR_BRANCH="${2}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  printf "Cloning \"%s\" on %s\n" "${TAG_OR_BRANCH}" "${REPO}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  # clone the repository branch/tag
 | 
				
			||||||
 | 
					  pushd "$(dirname "${BASH_SOURCE[0]}")/../../../" >/dev/null
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  rm -rf "$(basename "${REPO%.git}")"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  git clone -b "${TAG_OR_BRANCH}" --depth=1 "https://${GIT_USERNAME}:${GIT_PASSWORD}@${REPO}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  popd >/dev/null
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					set -vx
 | 
				
			||||||
							
								
								
									
										40
									
								
								scripts/ci/docker-compose/docker-compose-db.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										40
									
								
								scripts/ci/docker-compose/docker-compose-db.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,40 @@
 | 
				
			|||||||
 | 
					version: "3"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					services:
 | 
				
			||||||
 | 
					  postgres:
 | 
				
			||||||
 | 
					    profiles: ["postgres"]
 | 
				
			||||||
 | 
					    image: postgres:${POSTGRES_VERSION}
 | 
				
			||||||
 | 
					    environment:
 | 
				
			||||||
 | 
					      - POSTGRES_PASSWORD=alfresco
 | 
				
			||||||
 | 
					      - POSTGRES_USER=alfresco
 | 
				
			||||||
 | 
					      - POSTGRES_DB=alfresco
 | 
				
			||||||
 | 
					    command: postgres -c max_connections=300
 | 
				
			||||||
 | 
					    ports:
 | 
				
			||||||
 | 
					      - "5433:5432"
 | 
				
			||||||
 | 
					  mariadb:
 | 
				
			||||||
 | 
					    profiles: ["mariadb"]
 | 
				
			||||||
 | 
					    image: mariadb:${MARIADB_VERSION}
 | 
				
			||||||
 | 
					    command: --transaction-isolation=READ-COMMITTED --max-connections=300 --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
 | 
				
			||||||
 | 
					    environment:
 | 
				
			||||||
 | 
					      - MYSQL_ROOT_PASSWORD=alfresco
 | 
				
			||||||
 | 
					      - MYSQL_USER=alfresco
 | 
				
			||||||
 | 
					      - MYSQL_DATABASE=alfresco
 | 
				
			||||||
 | 
					      - MYSQL_PASSWORD=alfresco
 | 
				
			||||||
 | 
					    ports:
 | 
				
			||||||
 | 
					      - "3307:3306"
 | 
				
			||||||
 | 
					  mysql:
 | 
				
			||||||
 | 
					    profiles: ["mysql"]
 | 
				
			||||||
 | 
					    image: mysql:${MYSQL_VERSION}
 | 
				
			||||||
 | 
					    command: --transaction-isolation='READ-COMMITTED'
 | 
				
			||||||
 | 
					    environment:
 | 
				
			||||||
 | 
					      - MYSQL_ROOT_PASSWORD=alfresco
 | 
				
			||||||
 | 
					      - MYSQL_USER=alfresco
 | 
				
			||||||
 | 
					      - MYSQL_DATABASE=alfresco
 | 
				
			||||||
 | 
					      - MYSQL_PASSWORD=alfresco
 | 
				
			||||||
 | 
					    ports:
 | 
				
			||||||
 | 
					      - "3307:3306"
 | 
				
			||||||
 | 
					  activemq:
 | 
				
			||||||
 | 
					    image: alfresco/alfresco-activemq:5.17.1-jre11-rockylinux8
 | 
				
			||||||
 | 
					    ports:
 | 
				
			||||||
 | 
					      - "5672:5672" # AMQP
 | 
				
			||||||
 | 
					      - "61616:61616" # OpenWire
 | 
				
			||||||
							
								
								
									
										26
									
								
								scripts/ci/docker-compose/docker-compose.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								scripts/ci/docker-compose/docker-compose.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,26 @@
 | 
				
			|||||||
 | 
					version: "3"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					services:
 | 
				
			||||||
 | 
					  transform-core-aio:
 | 
				
			||||||
 | 
					    profiles: ["with-transform-core-aio"]
 | 
				
			||||||
 | 
					    image: alfresco/alfresco-transform-core-aio:${TRANSFORMERS_TAG}
 | 
				
			||||||
 | 
					    environment:
 | 
				
			||||||
 | 
					      JAVA_OPTS: " -Xms256m -Xmx256m"
 | 
				
			||||||
 | 
					    ports:
 | 
				
			||||||
 | 
					      - "8090:8090"
 | 
				
			||||||
 | 
					  postgres:
 | 
				
			||||||
 | 
					    image: postgres:14.4
 | 
				
			||||||
 | 
					    profiles: ["default", "with-transform-core-aio", "postgres"]
 | 
				
			||||||
 | 
					    environment:
 | 
				
			||||||
 | 
					      - POSTGRES_PASSWORD=alfresco
 | 
				
			||||||
 | 
					      - POSTGRES_USER=alfresco
 | 
				
			||||||
 | 
					      - POSTGRES_DB=alfresco
 | 
				
			||||||
 | 
					    command: postgres -c max_connections=300
 | 
				
			||||||
 | 
					    ports:
 | 
				
			||||||
 | 
					      - "5433:5432"
 | 
				
			||||||
 | 
					  activemq:
 | 
				
			||||||
 | 
					    profiles: ["default", "with-transform-core-aio", "activemq"]
 | 
				
			||||||
 | 
					    image: alfresco/alfresco-activemq:5.17.1-jre11-rockylinux8
 | 
				
			||||||
 | 
					    ports:
 | 
				
			||||||
 | 
					      - "5672:5672" # AMQP
 | 
				
			||||||
 | 
					      - "61616:61616" # OpenWire
 | 
				
			||||||
@@ -5,7 +5,7 @@ set -vex
 | 
				
			|||||||
pushd "$(dirname "${BASH_SOURCE[0]}")/../../"
 | 
					pushd "$(dirname "${BASH_SOURCE[0]}")/../../"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Maven Setup
 | 
					# Maven Setup
 | 
				
			||||||
mkdir -p "${HOME}/.m2" && cp -f .travis.settings.xml "${HOME}/.m2/settings.xml"
 | 
					mkdir -p "${HOME}/.m2" && cp -f .github/.ci.settings.xml "${HOME}/.m2/settings.xml"
 | 
				
			||||||
find "${HOME}/.m2/repository/" -type d -name "*-SNAPSHOT*" | xargs -r -l rm -rf
 | 
					find "${HOME}/.m2/repository/" -type d -name "*-SNAPSHOT*" | xargs -r -l rm -rf
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Docker Logins
 | 
					# Docker Logins
 | 
				
			||||||
@@ -4,23 +4,22 @@ PS4="\[\e[35m\]+ \[\e[m\]"
 | 
				
			|||||||
set -vex
 | 
					set -vex
 | 
				
			||||||
pushd "$(dirname "${BASH_SOURCE[0]}")/../../"
 | 
					pushd "$(dirname "${BASH_SOURCE[0]}")/../../"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
# Use full history for release
 | 
					# Use full history for release
 | 
				
			||||||
git checkout -B "${TRAVIS_BRANCH}"
 | 
					git checkout -B "${BRANCH_NAME}"
 | 
				
			||||||
# Add email to link commits to user
 | 
					# Define git identity for commits
 | 
				
			||||||
git config user.email "${GIT_EMAIL}"
 | 
					git config user.email "${GIT_EMAIL}"
 | 
				
			||||||
 | 
					git config user.name "${GIT_USERNAME}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Run the release plugin - with "[skip ci]" in the release commit message
 | 
					# Run the release plugin - with "[skip ci]" in the release commit message
 | 
				
			||||||
mvn -B \
 | 
					mvn -B \
 | 
				
			||||||
  -Pall-tas-tests \
 | 
					  -Pall-tas-tests \
 | 
				
			||||||
  -Pags \
 | 
					  -Pags \
 | 
				
			||||||
  "-Darguments=-Pall-tas-tests -Pags -DskipTests -Dbuild-number=${TRAVIS_BUILD_NUMBER}" \
 | 
					  "-Darguments=-Pall-tas-tests -Pags -DskipTests -Dbuild-number=${BUILD_NUMBER}" \
 | 
				
			||||||
  release:clean release:prepare release:perform \
 | 
					  release:clean release:prepare release:perform \
 | 
				
			||||||
  -DscmCommentPrefix="[maven-release-plugin][skip ci] " \
 | 
					  -DscmCommentPrefix="[maven-release-plugin][skip ci] " \
 | 
				
			||||||
  -Dusername="${GIT_USERNAME}" \
 | 
					  -Dusername="${GIT_USERNAME}" \
 | 
				
			||||||
  -Dpassword="${GIT_PASSWORD}"
 | 
					  -Dpassword="${GIT_PASSWORD}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
popd
 | 
					popd
 | 
				
			||||||
set +vex
 | 
					set +vex
 | 
				
			||||||
echo "=========================== Finishing Release Script =========================="
 | 
					echo "=========================== Finishing Release Script =========================="
 | 
				
			||||||
@@ -7,8 +7,8 @@ pushd "$(dirname "${BASH_SOURCE[0]}")/../../"
 | 
				
			|||||||
source "$(dirname "${BASH_SOURCE[0]}")/build_functions.sh"
 | 
					source "$(dirname "${BASH_SOURCE[0]}")/build_functions.sh"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#Fetch the latest changes, as Travis will only checkout the PR commit
 | 
					#Fetch the latest changes, as Travis will only checkout the PR commit
 | 
				
			||||||
git fetch origin "${TRAVIS_BRANCH}"
 | 
					git fetch origin "${BRANCH_NAME}"
 | 
				
			||||||
git checkout "${TRAVIS_BRANCH}"
 | 
					git checkout "${BRANCH_NAME}"
 | 
				
			||||||
git pull
 | 
					git pull
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Retrieve the current Community version - latest tag on the current branch
 | 
					# Retrieve the current Community version - latest tag on the current branch
 | 
				
			||||||
@@ -16,7 +16,7 @@ VERSION="$(git describe --abbrev=0 --tags)"
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
DOWNSTREAM_REPO="github.com/Alfresco/alfresco-enterprise-repo.git"
 | 
					DOWNSTREAM_REPO="github.com/Alfresco/alfresco-enterprise-repo.git"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
cloneRepo "${DOWNSTREAM_REPO}" "${TRAVIS_BRANCH}"
 | 
					cloneRepo "${DOWNSTREAM_REPO}" "${BRANCH_NAME}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
cd "$(dirname "${BASH_SOURCE[0]}")/../../../$(basename "${DOWNSTREAM_REPO%.git}")"
 | 
					cd "$(dirname "${BASH_SOURCE[0]}")/../../../$(basename "${DOWNSTREAM_REPO%.git}")"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -33,8 +33,8 @@ git status
 | 
				
			|||||||
git --no-pager diff pom.xml
 | 
					git --no-pager diff pom.xml
 | 
				
			||||||
git add pom.xml
 | 
					git add pom.xml
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if [[ "${TRAVIS_COMMIT_MESSAGE}" =~ \[force[^\]]*\] ]]; then
 | 
					if [[ "${COMMIT_MESSAGE}" =~ \[force[^\]]*\] ]]; then
 | 
				
			||||||
  FORCE_TOKEN=$(echo "${TRAVIS_COMMIT_MESSAGE}" | sed "s|^.*\(\[force[^]]*\]\).*$|\1|g")
 | 
					  FORCE_TOKEN=$(echo "${COMMIT_MESSAGE}" | sed "s|^.*\(\[force[^]]*\]\).*$|\1|g")
 | 
				
			||||||
  git commit --allow-empty -m "${FORCE_TOKEN} Update upstream version to ${VERSION}"
 | 
					  git commit --allow-empty -m "${FORCE_TOKEN} Update upstream version to ${VERSION}"
 | 
				
			||||||
  git push
 | 
					  git push
 | 
				
			||||||
elif git status --untracked-files=no --porcelain | grep -q '^' ; then
 | 
					elif git status --untracked-files=no --porcelain | grep -q '^' ; then
 | 
				
			||||||
@@ -1,193 +0,0 @@
 | 
				
			|||||||
#!/usr/bin/env bash
 | 
					 | 
				
			||||||
set +vx
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
function isPullRequestBuild() {
 | 
					 | 
				
			||||||
  test "${TRAVIS_PULL_REQUEST}" != "false"
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
function isBranchBuild() {
 | 
					 | 
				
			||||||
  test "${TRAVIS_PULL_REQUEST}" = "false"
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
function cloneRepo() {
 | 
					 | 
				
			||||||
  local REPO="${1}"
 | 
					 | 
				
			||||||
  local TAG_OR_BRANCH="${2}"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  printf "Clonning \"%s\" on %s\n" "${TAG_OR_BRANCH}" "${REPO}"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  # clone the repository branch/tag
 | 
					 | 
				
			||||||
  pushd "$(dirname "${BASH_SOURCE[0]}")/../../../" >/dev/null
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  rm -rf "$(basename "${REPO%.git}")"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  git clone -b "${TAG_OR_BRANCH}" --depth=1 "https://${GIT_USERNAME}:${GIT_PASSWORD}@${REPO}"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  popd >/dev/null
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
function retrievePomParentVersion() {
 | 
					 | 
				
			||||||
  local REPO="${1}"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  if [ -z "${REPO}" ]; then
 | 
					 | 
				
			||||||
    pushd "$(dirname "${BASH_SOURCE[0]}")/../../" >/dev/null
 | 
					 | 
				
			||||||
  else
 | 
					 | 
				
			||||||
    pushd "$(dirname "${BASH_SOURCE[0]}")/../../../$(basename "${REPO%.git}")" >/dev/null
 | 
					 | 
				
			||||||
  fi
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  sed -n '/<parent>/,/<\/parent>/p' pom.xml \
 | 
					 | 
				
			||||||
    | sed -n '/<version>/,/<\/version>/p' \
 | 
					 | 
				
			||||||
    | tr -d '\n' \
 | 
					 | 
				
			||||||
    | grep -oP '(?<=<version>).*(?=</version>)' \
 | 
					 | 
				
			||||||
    | xargs
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  popd >/dev/null
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
function retrievePomProperty() {
 | 
					 | 
				
			||||||
  local KEY="${1}"
 | 
					 | 
				
			||||||
  local REPO="${2}"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  if [ -z "${REPO}" ]; then
 | 
					 | 
				
			||||||
    pushd "$(dirname "${BASH_SOURCE[0]}")/../../" >/dev/null
 | 
					 | 
				
			||||||
  else
 | 
					 | 
				
			||||||
    pushd "$(dirname "${BASH_SOURCE[0]}")/../../../$(basename "${REPO%.git}")" >/dev/null
 | 
					 | 
				
			||||||
  fi
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  sed -n '/<properties>/,/<\/properties>/p' pom.xml \
 | 
					 | 
				
			||||||
    | sed -n "/<${KEY}>/,/<\/${KEY}>/p" \
 | 
					 | 
				
			||||||
    | tr -d '\n' \
 | 
					 | 
				
			||||||
    | grep -oP "(?<=<${KEY}>).*(?=</${KEY}>)" \
 | 
					 | 
				
			||||||
    | xargs
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  popd >/dev/null
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
function evaluatePomProperty() {
 | 
					 | 
				
			||||||
  local KEY="${1}"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  pushd "$(dirname "${BASH_SOURCE[0]}")/../../" >/dev/null
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  mvn -B -q help:evaluate -Dexpression="${KEY}" -DforceStdout
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  popd >/dev/null
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
function remoteBranchExists() {
 | 
					 | 
				
			||||||
  local REMOTE_REPO="${1}"
 | 
					 | 
				
			||||||
  local BRANCH="${2}"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  git ls-remote --exit-code --heads "https://${GIT_USERNAME}:${GIT_PASSWORD}@${REMOTE_REPO}" "${BRANCH}" &>/dev/null
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
function identifyUpstreamSourceBranch() {
 | 
					 | 
				
			||||||
  local UPSTREAM_REPO="${1}"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  # if it's a pull request, use the source branch name (if it exists)
 | 
					 | 
				
			||||||
  if isPullRequestBuild && remoteBranchExists "${UPSTREAM_REPO}" "${TRAVIS_PULL_REQUEST_BRANCH}" ; then
 | 
					 | 
				
			||||||
    echo "${TRAVIS_PULL_REQUEST_BRANCH}"
 | 
					 | 
				
			||||||
    exit 0
 | 
					 | 
				
			||||||
  fi
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  # otherwise use the current branch name (or in case of PRs, the target branch name)
 | 
					 | 
				
			||||||
  if remoteBranchExists "${UPSTREAM_REPO}" "${TRAVIS_BRANCH}" ; then
 | 
					 | 
				
			||||||
    echo "${TRAVIS_BRANCH}"
 | 
					 | 
				
			||||||
    exit 0
 | 
					 | 
				
			||||||
  fi
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  # if none of the previous exists, use the "master" branch
 | 
					 | 
				
			||||||
  echo "master"
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
function pullUpstreamTag() {
 | 
					 | 
				
			||||||
  local UPSTREAM_REPO="${1}"
 | 
					 | 
				
			||||||
  local TAG="${2}"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  cloneRepo "${UPSTREAM_REPO}" "${TAG}"
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
function pullSameBranch() {
 | 
					 | 
				
			||||||
  local UPSTREAM_REPO="${1}"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  local SOURCE_BRANCH="$(identifyUpstreamSourceBranch "${UPSTREAM_REPO}")"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  cloneRepo "${UPSTREAM_REPO}" "${SOURCE_BRANCH}"
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
function buildUpstreamTag() {
 | 
					 | 
				
			||||||
  local UPSTREAM_REPO="${1}"
 | 
					 | 
				
			||||||
  local TAG="${2}"
 | 
					 | 
				
			||||||
  local EXTRA_BUILD_ARGUMENTS="${3}"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  pushd "$(dirname "${BASH_SOURCE[0]}")/../../../"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  cd "$(basename "${UPSTREAM_REPO%.git}")"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  mvn -B -V clean package -DskipTests -Dmaven.javadoc.skip=true "-Dimage.tag=${TAG}" ${EXTRA_BUILD_ARGUMENTS}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  popd
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
function buildSameBranchOnUpstream() {
 | 
					 | 
				
			||||||
  local UPSTREAM_REPO="${1}"
 | 
					 | 
				
			||||||
  local EXTRA_BUILD_ARGUMENTS="${2}"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  pushd "$(dirname "${BASH_SOURCE[0]}")/../../../"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  cd "$(basename "${UPSTREAM_REPO%.git}")"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  mvn -B -V -q clean install -DskipTests -Dmaven.javadoc.skip=true ${EXTRA_BUILD_ARGUMENTS}
 | 
					 | 
				
			||||||
  mvn -B -V -q install -DskipTests -f packaging/tests/pom.xml
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  popd
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
function pullUpstreamTagAndBuildDockerImage() {
 | 
					 | 
				
			||||||
  local UPSTREAM_REPO="${1}"
 | 
					 | 
				
			||||||
  local TAG="${2}"
 | 
					 | 
				
			||||||
  local EXTRA_BUILD_ARGUMENTS="${3}"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  cloneRepo "${UPSTREAM_REPO}" "${TAG}"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  pushd "$(dirname "${BASH_SOURCE[0]}")/../../../"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  cd "$(basename "${UPSTREAM_REPO%.git}")"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  mvn -B -V clean package -DskipTests -Dmaven.javadoc.skip=true "-Dimage.tag=${TAG}" ${EXTRA_BUILD_ARGUMENTS}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  popd
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
function pullAndBuildSameBranchOnUpstream() {
 | 
					 | 
				
			||||||
  local UPSTREAM_REPO="${1}"
 | 
					 | 
				
			||||||
  local EXTRA_BUILD_ARGUMENTS="${2}"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  local SOURCE_BRANCH="$(identifyUpstreamSourceBranch "${UPSTREAM_REPO}")"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  cloneRepo "${UPSTREAM_REPO}" "${SOURCE_BRANCH}"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  pushd "$(dirname "${BASH_SOURCE[0]}")/../../../"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  cd "$(basename "${UPSTREAM_REPO%.git}")"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  mvn -B -V -q clean install -DskipTests -Dmaven.javadoc.skip=true ${EXTRA_BUILD_ARGUMENTS}
 | 
					 | 
				
			||||||
  mvn -B -V -q install -DskipTests -f packaging/tests/pom.xml
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  popd
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
function retieveLatestTag() {
 | 
					 | 
				
			||||||
  local REPO="${1}"
 | 
					 | 
				
			||||||
  local BRANCH="${2}"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  local LOCAL_PATH="/tmp/$(basename "${REPO%.git}")"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  git clone -q -b "${BRANCH}" "https://${GIT_USERNAME}:${GIT_PASSWORD}@${REPO}" "${LOCAL_PATH}"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  pushd "${LOCAL_PATH}" >/dev/null
 | 
					 | 
				
			||||||
  git describe --abbrev=0 --tags
 | 
					 | 
				
			||||||
  popd >/dev/null
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  rm -rf "${LOCAL_PATH}"
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
set -vx
 | 
					 | 
				
			||||||
		Reference in New Issue
	
	Block a user