Compare commits

..
74 Commits
Author SHA1 Message Date
alfresco-build b5478b1508 [maven-release-plugin][skip ci] prepare release 7.4.0-DEV 2022-11-28 15:45:35 +00:00
Domenico Sibilio 29a72a5731 [skip tests][skip docker_latest][release] 2022-11-28 16:18:43 +01:00
Domenico Sibilio 2c3df7a0ef [skip tests][skip docker_latest][release] 2022-11-28 15:22:00 +01:00
Domenico Sibilio e7eaef3bfc [skip tests][skip docker_latest][release] 2022-11-28 12:38:29 +01:00
Domenico Sibilio 0d829ab907 [skip tests][skip docker_latest][release] 2022-11-28 11:48:36 +01:00
Domenico Sibilio 007083dbb7 [skip tests][skip docker_latest][release] 2022-11-25 16:32:20 +01:00
Domenico Sibilio b723e70f65 ACS-3844 Test env vars access [skip tests] 2022-11-25 16:28:58 +01:00
Domenico Sibilio 147399f02d ACS-3844 Test env vars access [skip tests] 2022-11-25 16:28:23 +01:00
Domenico Sibilio ef750098dc ACS-3844 Test env vars access [skip tests] 2022-11-25 16:27:57 +01:00
Domenico Sibilio d2556c0f4a ACS-3844 Test env vars access [skip tests] 2022-11-25 16:27:06 +01:00
Domenico Sibilio 42347ad489 [skip tests][skip docker_latest][release] 2022-11-25 15:37:03 +01:00
Domenico Sibilio 42f69fbd79 [skip tests][skip docker_latest][release] 2022-11-25 15:15:45 +01:00
Domenico Sibilio b82241bc64 [skip tests][skip docker_latest] 2022-11-25 15:14:55 +01:00
Domenico Sibilio 32da6a3b56 ACS-3844 Uncomment maven profile 2022-11-25 13:43:31 +01:00
Domenico Sibilio 0d9d36a3f1 [skip tests] 2022-11-25 13:36:42 +01:00
Domenico Sibilio cd667bc0b9 [skip tests] 2022-11-25 13:36:29 +01:00
Domenico Sibilio b3b350c8d5 [skip tests] 2022-11-25 13:33:09 +01:00
Domenico Sibilio 01a7d8346f [skip tests] 2022-11-25 13:32:27 +01:00
Domenico Sibilio c561592f50 [skip tests] 2022-11-25 13:31:21 +01:00
Domenico Sibilio 00bb24d29b [skip tests] 2022-11-25 13:29:24 +01:00
Domenico Sibilio 926b4ed783 [skip tests] 2022-11-25 13:27:36 +01:00
Domenico Sibilio dc421ae254 [skip tests] 2022-11-25 13:25:03 +01:00
Domenico Sibilio 5bbfeaece8 [skip tests] 2022-11-25 13:24:28 +01:00
Domenico Sibilio 164076edd4 [skip tests] 2022-11-25 13:23:11 +01:00
Domenico Sibilio dead792f18 [skip tests] 2022-11-25 13:22:39 +01:00
Domenico Sibilio d0ad5fef1c [skip tests] 2022-11-25 13:22:17 +01:00
Domenico Sibilio eb36f14d61 [skip tests] 2022-11-25 13:21:38 +01:00
Domenico Sibilio b394b3a989 [skip tests] 2022-11-25 12:57:51 +01:00
Domenico Sibilio e0ddaa1252 ACS-3844 Remove unnecessary line 2022-11-25 12:57:34 +01:00
Domenico Sibilio 2f9fdb129d ACS-3844 Refactor to context var access in conditional expressions 2022-11-25 12:56:36 +01:00
Domenico Sibilio 2b013e4281 ACS-3844 Refactor env var access in conditional expressions 2022-11-25 12:48:32 +01:00
Domenico Sibilio 5ef191390c ACS-3844 Add docker_latest stage 2022-11-25 12:45:10 +01:00
Domenico Sibilio 376d71a4d4 ACS-3844 Eliminate unnecessary names for composite actions 2022-11-25 12:09:19 +01:00
Domenico Sibilio 6c47778192 Revert "ACS-3844 POC env vars in composite actions"
This reverts commit 601005ec09.
2022-11-25 11:51:05 +01:00
Domenico Sibilio 601005ec09 ACS-3844 POC env vars in composite actions 2022-11-25 11:49:00 +01:00
Domenico Sibilio 4f0789a686 ACS-3844 Improve step naming 2022-11-25 11:05:45 +01:00
Domenico Sibilio c9ac83fc61 ACS-3844 Add missing space 2022-11-25 11:03:44 +01:00
Domenico Sibilio 9f5eb8376b ACS-3844 Add missing double-quotes 2022-11-25 10:58:39 +01:00
Domenico Sibilio 42d308cc4f ACS-3844 Cleanup composite GH Actions 2022-11-25 10:56:47 +01:00
Domenico Sibilio a6441ebc73 ACS-3844 Add missing $ 2022-11-24 17:17:54 +01:00
Domenico Sibilio 6b12f9c786 ACS-3844 Add shell definition 2022-11-24 17:16:57 +01:00
Domenico Sibilio f55e6913f8 ACS-3844 Refactor get-build-info action 2022-11-24 17:15:36 +01:00
Domenico Sibilio 58a5588123 ACS-3844 Add missing checkout action 2022-11-24 17:12:31 +01:00
Domenico Sibilio a76afd10d3 ACS-3844 Add missing checkout action 2022-11-24 17:10:26 +01:00
Domenico Sibilio 494dda664d ACS-3844 Add checkout action for configure_env 2022-11-24 17:07:36 +01:00
Domenico Sibilio b4faf9b0db ACS-3844 Add build info and build tools setup 2022-11-24 17:04:27 +01:00
Domenico Sibilio fdbd1201fe ACS-3844 Refactor for GHA migration 2022-11-24 16:17:30 +01:00
Domenico Sibilio db94e871ba ACS-3844 Run community zip tests via GHA 2022-11-24 13:30:08 +01:00
Domenico Sibilio 0b6debe625 ACS-3844 Migrate TAS tests to GHA 2022-11-24 12:20:24 +01:00
Sara fa7a57310f MNT-22686 Add email template to enterprise test resources (#1492) 2022-11-23 18:24:46 +00:00
Travis CI User c2bfa12c45 [maven-release-plugin][skip ci] prepare for next development iteration 2022-11-13 02:52:32 +00:00
Travis CI User 59bb2d4093 [maven-release-plugin][skip ci] prepare release 7.4.0-A3 2022-11-13 02:52:30 +00:00
Travis CI User 151269ed6e [release] 7.4.0-A3
Update upstream versions
    - alfresco-community-repo:   20.14
    - alfresco-enterprise-share: 20.10
    - acs-packaging:             7.4.0-A3
    - RELEASE_VERSION:           7.4.0-A3
    - DEVELOPMENT_VERSION:       7.4.0-A4-SNAPSHOT
2022-11-13 01:52:18 +00:00
Travis CI User d29290bf33 [maven-release-plugin][skip ci] prepare for next development iteration 2022-11-06 03:01:55 +00:00
Travis CI User 4a81764e77 [maven-release-plugin][skip ci] prepare release 7.4.0-A2 2022-11-06 03:01:53 +00:00
Travis CI User 1df9faf624 [release] 7.4.0-A2
Update upstream versions
    - alfresco-community-repo:   20.6
    - alfresco-enterprise-share: 20.5
    - acs-packaging:             7.4.0-A2
    - RELEASE_VERSION:           7.4.0-A2
    - DEVELOPMENT_VERSION:       7.4.0-A3-SNAPSHOT
2022-11-06 01:58:48 +00:00
Travis CI User dee27344c1 [maven-release-plugin][skip ci] prepare for next development iteration 2022-10-30 03:03:44 +00:00
Travis CI User fe797dd89b [maven-release-plugin][skip ci] prepare release 7.4.0-A1 2022-10-30 03:03:42 +00:00
Travis CI User b84d48ad89 [release] 7.4.0-A1
Update upstream versions
    - alfresco-community-repo:   20.2
    - alfresco-enterprise-share: 20.2
    - acs-packaging:             7.4.0-A1
    - RELEASE_VERSION:           7.4.0-A1
    - DEVELOPMENT_VERSION:       7.4.0-A2-SNAPSHOT
2022-10-30 02:00:46 +00:00
Domenico Sibilio 522e9a7ba3 APPS-1677 Remove unnecessary MAVEN_OPTS to build comm-share (#1488) 2022-10-27 13:32:19 +02:00
Krystian Dabrowski 51c51e1622 Update Master branch to 7.4.0 [skip ci] 2022-10-27 12:26:54 +02:00
Travis CI User 28846aa431 [maven-release-plugin][skip ci] prepare for next development iteration 2022-10-26 14:28:23 +00:00
Travis CI User 64eabb0f99 [maven-release-plugin][skip ci] prepare release 7.3.0 2022-10-26 14:28:21 +00:00
Travis CI User ac8c7dc395 [release][publish] 7.3.0
Update upstream versions
    - alfresco-community-repo:   17.183
    - alfresco-enterprise-share: 17.138
    - acs-packaging:             7.3.0
    - RELEASE_VERSION:           7.3.0
    - DEVELOPMENT_VERSION:       7.4.0-A1-SNAPSHOT
2022-10-26 13:23:11 +00:00
Travis CI User a6ed8984f0 [maven-release-plugin][skip ci] prepare for next development iteration 2022-10-23 03:14:18 +00:00
Travis CI User accf389a25 [maven-release-plugin][skip ci] prepare release 7.3.0-A30 2022-10-23 03:14:16 +00:00
Travis CI User 68c11271ec [release] 7.3.0-A30
Update upstream versions
    - alfresco-community-repo:   17.181
    - alfresco-enterprise-share: 17.136
    - acs-packaging:             7.3.0-A30
    - RELEASE_VERSION:           7.3.0-A30
    - DEVELOPMENT_VERSION:       7.3.0-A31-SNAPSHOT
2022-10-23 02:09:50 +00:00
Travis CI User 722b8cfad9 [maven-release-plugin][skip ci] prepare for next development iteration 2022-10-18 11:31:53 +00:00
Travis CI User 090aff5828 [maven-release-plugin][skip ci] prepare release 7.3.0-A29 2022-10-18 11:31:51 +00:00
Travis CI User 011e3a82b2 [release] 7.3.0-A29
Update upstream versions
    - alfresco-community-repo:   17.174
    - alfresco-enterprise-share: 17.132
    - acs-packaging:             7.3.0-A29
    - RELEASE_VERSION:           7.3.0-A29
    - DEVELOPMENT_VERSION:       7.3.0-A30-SNAPSHOT
2022-10-18 10:31:35 +00:00
Travis CI User f24b02c211 [maven-release-plugin][skip ci] prepare for next development iteration 2022-10-16 03:02:06 +00:00
Travis CI User 0da9de5c98 [maven-release-plugin][skip ci] prepare release 7.3.0-A28 2022-10-16 03:02:04 +00:00
Travis CI User a47c473aad [release] 7.3.0-A28
Update upstream versions
    - alfresco-community-repo:   17.172
    - alfresco-enterprise-share: 17.131
    - acs-packaging:             7.3.0-A28
    - RELEASE_VERSION:           7.3.0-A28
    - DEVELOPMENT_VERSION:       7.3.0-A29-SNAPSHOT
2022-10-16 02:00:17 +00:00
Travis CI User fe2ad7b057 [maven-release-plugin][skip ci] prepare for next development iteration 2022-10-15 19:52:49 +00:00
35 changed files with 289 additions and 61 deletions
+17
View File
@@ -0,0 +1,17 @@
name: "Get build info"
description: "Get build-related info from GitHub and load it as variables into the runner env"
runs:
using: composite
steps:
- uses: Alfresco/alfresco-build-tools/.github/actions/get-branch-name@v1.23.0
- name: "Get build info"
run: |
[[ $GITHUB_EVENT_NAME == "pull_request" ]] && IS_PULL_REQUEST="true" || IS_PULL_REQUEST="false"
echo "PULL_REQUEST=$IS_PULL_REQUEST" >> "$GITHUB_ENV"
echo "BUILD_NUMBER=$GITHUB_RUN_NUMBER" >> "$GITHUB_ENV"
echo "ATTEMPT_NUMBER=$GITHUB_RUN_ATTEMPT" >> "$GITHUB_ENV"
echo "Pull Request: '$IS_PULL_REQUEST'"
echo "Build Number: '$GITHUB_RUN_NUMBER'"
echo "Attempt Number: '$GITHUB_RUN_ATTEMPT'"
shell: bash
@@ -0,0 +1,26 @@
name: "Setup build tools"
description: "Performs the setup of the required build tools (eg.: Maven, Java)"
inputs:
java-version:
description: the desired Java version
default: "17"
required: false
java-distribution:
description: the desired Java distribution
default: "temurin"
required: false
runs:
using: composite
steps:
- 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-
- name: "Set up Java"
uses: actions/setup-java@v3
with:
java-version: ${{ inputs.java-version }}
distribution: ${{ inputs.java-distribution }}
+195
View File
@@ -0,0 +1,195 @@
name: ACS Community Packaging CI
on:
pull_request:
push:
branches:
- feature/ACS-3844_migrate-to-GHA
workflow_dispatch:
env:
GIT_USERNAME: ${{ secrets.BOT_GITHUB_USERNAME }}
GIT_EMAIL: ${{ secrets.BOT_GITHUB_EMAIL }}
GIT_PASSWORD: ${{ secrets.BOT_GITHUB_TOKEN }}
DOCKERHUB_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
DOCKERHUB_USERNAME: ${{ secrets.DOCKER_USERNAME }}
GITHUB_ACTIONS_DEPLOY_TIMEOUT: 60
MAVEN_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
MAVEN_USERNAME: ${{ secrets.NEXUS_USERNAME }}
QUAY_PASSWORD: ${{ secrets.QUAY_PASSWORD }}
QUAY_USERNAME: ${{ secrets.QUAY_USERNAME }}
TAS_ENVIRONMENT: ./tests/environment
TAS_SCRIPTS: ../alfresco-community-repo/packaging/tests/scripts
# Release version has to start with real version (7.4.0-....) for the docker image to build successfully.
RELEASE_VERSION: 7.4.0-DEV
DEVELOPMENT_VERSION: 7.4.0-DEV1-SNAPSHOT
jobs:
tas_tests:
name: ${{ matrix.testSuite }} TAS tests
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip tas]') && !contains(github.event.head_commit.message, '[skip tests]')"
strategy:
fail-fast: false
matrix:
include:
- testSuite: REST API part1
pom: tests/tas-restapi/pom.xml
profiles: all-tas-tests,run-restapi-part1
compose-file: docker-compose-minimal+transforms.yml
- testSuite: REST API part2
pom: tests/tas-restapi/pom.xml
profiles: all-tas-tests,run-restapi-part2
compose-file: docker-compose-minimal+transforms.yml
- testSuite: REST API part3
pom: tests/tas-restapi/pom.xml
profiles: all-tas-tests,run-restapi-part3
compose-file: docker-compose-minimal+transforms.yml
- testSuite: CMIS (BROWSER binding)
pom: tests/tas-cmis/pom.xml
profiles: all-tas-tests,run-cmis-browser
compose-file: docker-compose-minimal+transforms.yml
- testSuite: CMIS (ATOM binding)
pom: tests/tas-cmis/pom.xml
profiles: all-tas-tests,run-cmis-atom
compose-file: docker-compose-minimal+transforms.yml
- testSuite: CMIS (WEBSERVICES binding)
pom: tests/tas-cmis/pom.xml
profiles: all-tas-tests,run-cmis-webservices
compose-file: docker-compose-minimal+transforms.yml
- testSuite: Email
pom: tests/tas-email/pom.xml
profiles: all-tas-tests
compose-file: docker-compose-minimal.yml
- testSuite: WebDAV
pom: tests/tas-webdav/pom.xml
profiles: all-tas-tests
compose-file: docker-compose-minimal.yml
- testSuite: Integration
pom: tests/tas-integration/pom.xml
profiles: all-tas-tests
compose-file: docker-compose-minimal.yml
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/get-build-info
- uses: ./.github/actions/setup-build-tools
- name: "Init"
timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
run: |
bash ./scripts/ci/init.sh
bash ./scripts/ci/build.sh
- name: "Setup the environment"
run: |
${TAS_SCRIPTS}/start-compose.sh ${TAS_ENVIRONMENT}/${{ matrix.compose-file }}
${TAS_SCRIPTS}/wait-for-alfresco-start.sh "http://localhost:8082/alfresco"
- name: "Test"
run: mvn -B install -ntp -f ${{ matrix.pom }} -P${{ matrix.profiles }} -Denvironment=default -DrunBugs=false
- name: "Clean Maven cache"
run: bash ./scripts/ci/cleanup_cache.sh
community_zip_tests:
name: Community Distribution Zip content tests
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip tests]')"
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/get-build-info
- uses: ./.github/actions/setup-build-tools
- name: "Init"
timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
run: |
bash ./scripts/ci/init.sh
bash ./scripts/ci/build.sh
- name: "Build"
timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
run: mvn -B -ntp -V clean install -Pags -DskipTests -Dmaven.javadoc.skip=true
- name: "Test"
run: mvn -B install -ntp -f tests/tas-distribution-zip/pom.xml -Prun-distribution-zip-contents-check -DrunBugs=false
- name: "Clean Maven cache"
run: bash ./scripts/ci/cleanup_cache.sh
docker_latest:
name: Update latest Docker images
runs-on: ubuntu-latest
needs: [tas_tests, community_zip_tests]
if: >
!failure() &&
!contains(github.event.head_commit.message, '[skip docker_latest]') &&
(github.ref_name == 'master' || contains(github.ref_name, 'release/')) &&
github.event_name != 'pull_request'
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/get-build-info
- uses: ./.github/actions/setup-build-tools
- name: "Init"
timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
run: |
bash ./scripts/ci/init.sh
bash ./scripts/ci/build.sh
- name: "Push Docker images"
timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
run: mvn -B -ntp -V clean install -DskipTests -Dmaven.javadoc.skip=true -Pags -Ppush-docker-images
- name: "Clean Maven cache"
run: bash ./scripts/ci/cleanup_cache.sh
release:
name: Release and Copy to S3 Staging Bucket
runs-on: ubuntu-latest
needs: [docker_latest]
#&& TODO: add to following section once S3 has been tested
#(github.ref_name == 'master' || contains(github.ref_name, 'release/')) &&
#github.event_name != 'pull_request'
if: >
!failure() &&
contains(github.event.head_commit.message, '[release]')
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/get-build-info
- uses: ./.github/actions/setup-build-tools
- name: "Init"
timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
run: |
bash ./scripts/ci/init.sh
bash ./scripts/ci/build.sh
- name: "Release"
timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
run: |
bash scripts/ci/verify_release_tag.sh
bash scripts/ci/maven_release.sh
source scripts/ci/prepare_staging_deploy.sh
- name: "Clean Maven cache"
run: bash ./scripts/ci/cleanup_cache.sh
- name: "Configure AWS credentials"
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_STAGING_ACCESS_KEY }}
aws-secret-access-key: ${{ secrets.AWS_STAGING_SECRET_KEY }}
aws-region: eu-west-1
- name: "Deploy to S3 Staging Bucket"
run: |
aws s3 cp --acl private --recursive ./deploy_dir s3://alfresco-artefacts-staging/alfresco-content-services-community/release/${BRANCH_NAME}/${BUILD_NUMBER}
aws s3 cp --acl private --recursive ./deploy_dir_ags s3://alfresco-artefacts-staging/community/RM/${RELEASE_VERSION}
echo "Finished release and deployed to https://s3.console.aws.amazon.com/s3/buckets/alfresco-artefacts-staging/alfresco-content-services-community/release/${BRANCH_NAME}/${BUILD_NUMBER}"
publish:
name: Copy to S3 Release Bucket
runs-on: ubuntu-latest
needs: [release]
if: >
!failure() &&
contains(github.event.head_commit.message, '[publish]') &&
(github.ref_name == 'master' || contains(github.ref_name, 'release/')) &&
github.event_name != 'pull_request'
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/get-build-info
- name: "Configure AWS credentials"
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: eu-west-1
- name: "Deploy to S3 Release Bucket"
run: |
bash scripts/ci/copy_to_release_bucket.sh
bash scripts/ci/copy_ags_to_release_bucket.sh
+4 -7
View File
@@ -19,18 +19,15 @@ before_cache: bash scripts/travis/cleanup_cache.sh
branches:
only:
- master
- /release\/.*/
- /feature\/.*/
- /fix\/.*/
- none
env:
global:
- TAS_SCRIPTS=../alfresco-community-repo/packaging/tests/scripts
- TAS_ENVIRONMENT=./tests/environment
# Release version has to start with real version (7.3.0-....) for the docker image to build successfully.
- RELEASE_VERSION=7.3.0-A27
- DEVELOPMENT_VERSION=7.3.0-A28-SNAPSHOT
# Release version has to start with real version (7.4.0-....) for the docker image to build successfully.
- RELEASE_VERSION=7.4.0-A3
- DEVELOPMENT_VERSION=7.4.0-A4-SNAPSHOT
stages:
- name: test
+1 -1
View File
@@ -7,7 +7,7 @@
<parent>
<groupId>org.alfresco</groupId>
<artifactId>alfresco-dev-community-tomcat-env</artifactId>
<version>7.3.0-A27</version>
<version>7.4.0-DEV</version>
</parent>
<properties>
+1 -1
View File
@@ -8,7 +8,7 @@
<parent>
<groupId>org.alfresco</groupId>
<artifactId>alfresco-dev-community-tomcat-env</artifactId>
<version>7.3.0-A27</version>
<version>7.4.0-DEV</version>
</parent>
<build>
+1 -1
View File
@@ -8,7 +8,7 @@
<parent>
<groupId>org.alfresco</groupId>
<artifactId>alfresco-dev-community-tomcat-env</artifactId>
<version>7.3.0-A27</version>
<version>7.4.0-DEV</version>
</parent>
<build>
+1 -1
View File
@@ -9,7 +9,7 @@
<parent>
<groupId>org.alfresco</groupId>
<artifactId>alfresco-dev-community-tomcat-env</artifactId>
<version>7.3.0-A27</version>
<version>7.4.0-DEV</version>
</parent>
<properties>
+1 -1
View File
@@ -9,7 +9,7 @@
<parent>
<groupId>org.alfresco</groupId>
<artifactId>acs-community-packaging</artifactId>
<version>7.3.0-A27</version>
<version>7.4.0-DEV</version>
</parent>
<properties>
+1 -1
View File
@@ -8,7 +8,7 @@
<parent>
<groupId>org.alfresco</groupId>
<artifactId>acs-community-packaging</artifactId>
<version>7.3.0-A27</version>
<version>7.4.0-DEV</version>
</parent>
<dependencies>
+1 -1
View File
@@ -7,7 +7,7 @@
<parent>
<groupId>org.alfresco</groupId>
<artifactId>acs-community-packaging</artifactId>
<version>7.3.0-A27</version>
<version>7.4.0-DEV</version>
</parent>
<dependencies>
+1 -1
View File
@@ -8,7 +8,7 @@
<parent>
<groupId>org.alfresco</groupId>
<artifactId>content-services-community-docker</artifactId>
<version>7.3.0-A27</version>
<version>7.4.0-DEV</version>
</parent>
<properties>
+1 -1
View File
@@ -7,7 +7,7 @@
<parent>
<groupId>org.alfresco</groupId>
<artifactId>acs-community-packaging</artifactId>
<version>7.3.0-A27</version>
<version>7.4.0-DEV</version>
</parent>
<properties>
+1 -1
View File
@@ -8,7 +8,7 @@
<parent>
<groupId>org.alfresco</groupId>
<artifactId>share-community-docker</artifactId>
<version>7.3.0-A27</version>
<version>7.4.0-DEV</version>
</parent>
<properties>
+1 -1
View File
@@ -7,6 +7,6 @@
<parent>
<groupId>org.alfresco</groupId>
<artifactId>acs-community-packaging</artifactId>
<version>7.3.0-A27</version>
<version>7.4.0-DEV</version>
</parent>
</project>
+6 -6
View File
@@ -3,19 +3,19 @@
<artifactId>acs-community-packaging</artifactId>
<packaging>pom</packaging>
<name>Alfresco Content Services Community Packaging</name>
<version>7.3.0-A27</version>
<version>7.4.0-DEV</version>
<parent>
<groupId>org.alfresco</groupId>
<artifactId>alfresco-community-repo</artifactId>
<relativePath>../alfresco-community-repo/pom.xml</relativePath>
<version>17.171</version>
<version>20.14</version>
</parent>
<properties>
<dependency.alfresco-community-repo.version>17.171</dependency.alfresco-community-repo.version>
<dependency.alfresco-community-share.version>17.130</dependency.alfresco-community-share.version>
<dependency.acs-packaging.version>7.3.0-A27</dependency.acs-packaging.version> <!-- for Share distribution zip -->
<dependency.alfresco-community-repo.version>20.14</dependency.alfresco-community-repo.version>
<dependency.alfresco-community-share.version>20.10</dependency.alfresco-community-share.version>
<dependency.acs-packaging.version>7.4.0-A3</dependency.acs-packaging.version> <!-- for Share distribution zip -->
<repo.image.tag>${dependency.alfresco-community-repo.version}</repo.image.tag>
<share.image.tag>${dependency.alfresco-community-share.version}</share.image.tag>
@@ -25,7 +25,7 @@
<connection>scm:git:https://github.com/Alfresco/acs-community-packaging.git</connection>
<developerConnection>scm:git:https://github.com/Alfresco/acs-community-packaging.git</developerConnection>
<url>https://github.com/Alfresco/acs-community-packaging</url>
<tag>7.3.0-A27</tag>
<tag>7.4.0-DEV</tag>
</scm>
<distributionManagement>
+1 -1
View File
@@ -5,7 +5,7 @@
<parent>
<groupId>org.alfresco</groupId>
<artifactId>acs-community-packaging</artifactId>
<version>7.3.0-A27</version>
<version>7.4.0-DEV</version>
</parent>
<packaging>pom</packaging>
@@ -16,13 +16,13 @@ if [ "${COM_DEPENDENCY_VERSION}" != "$(retrievePomParentVersion)" ]; then
fi
# Prevent merging of any SNAPSHOT dependencies into the master or the release/* branches
if [[ $(isPullRequestBuild) && "${COM_DEPENDENCY_VERSION}" =~ ^.+-SNAPSHOT$ && "${TRAVIS_BRANCH}" =~ ^master$|^release/.+$ ]] ; then
if [[ $(isPullRequestBuild) && "${COM_DEPENDENCY_VERSION}" =~ ^.+-SNAPSHOT$ && "${BRANCH_NAME}" =~ ^master$|^release/.+$ ]] ; then
printf "PRs with SNAPSHOT dependencies are not allowed into master or release branches\n"
exit 1
fi
# Prevent release jobs from starting when there are SNAPSHOT upstream dependencies
if [[ "${COM_DEPENDENCY_VERSION}" =~ ^.+-SNAPSHOT$ ]] && [ "${TRAVIS_BUILD_STAGE_NAME,,}" = "release" ] ; then
if [[ "${COM_DEPENDENCY_VERSION}" =~ ^.+-SNAPSHOT$ ]] && [ "${BUILD_STAGE_NAME,,}" = "release" ] ; then
printf "Cannot release project with SNAPSHOT dependencies!\n"
exit 1
fi
@@ -41,26 +41,18 @@ SHARE_DEPENDENCY_VERSION="$(retrievePomProperty "dependency.alfresco-community-s
SHARE_IMAGE=$([[ "${SHARE_DEPENDENCY_VERSION}" =~ ^.+-SNAPSHOT$ ]] && echo "-Dshare.image.tag=latest" || echo)
# Prevent merging of any SNAPSHOT dependencies into the master or the release/* branches
if [[ $(isPullRequestBuild) && "${SHARE_DEPENDENCY_VERSION}" =~ ^.+-SNAPSHOT$ && "${TRAVIS_BRANCH}" =~ ^master$|^release/.+$ ]] ; then
if [[ $(isPullRequestBuild) && "${SHARE_DEPENDENCY_VERSION}" =~ ^.+-SNAPSHOT$ && "${BRANCH_NAME}" =~ ^master$|^release/.+$ ]] ; then
printf "PRs with SNAPSHOT dependencies are not allowed into master or release branches\n"
exit 1
fi
# Prevent release jobs from starting when there are SNAPSHOT upstream dependencies
if [[ "${SHARE_DEPENDENCY_VERSION}" =~ ^.+-SNAPSHOT$ ]] && [ "${TRAVIS_BUILD_STAGE_NAME,,}" = "release" ] ; then
if [[ "${SHARE_DEPENDENCY_VERSION}" =~ ^.+-SNAPSHOT$ ]] && [ "${BUILD_STAGE_NAME,,}" = "release" ] ; then
printf "Cannot release project with SNAPSHOT dependencies!\n"
exit 1
fi
SHARE_UPSTREAM_REPO="github.com/Alfresco/alfresco-community-share.git"
# Temporarily opening reflective access during compilation for community-share
# This could be removed once community-share will become Java 17 compliant
# (Maven plugins included e.g.: maven-war-plugin)
export MAVEN_OPTS="--add-opens=java.base/java.util=ALL-UNNAMED \
--add-opens=java.base/java.lang=ALL-UNNAMED \
--add-opens=java.base/java.lang.reflect=ALL-UNNAMED \
--add-opens=java.base/java.text=ALL-UNNAMED \
--add-opens=java.desktop/java.awt.font=ALL-UNNAMED"
# Checkout the upstream share project (tag or branch; + build if the latter)
if [[ "${SHARE_DEPENDENCY_VERSION}" =~ ^.+-SNAPSHOT$ ]] ; then
pullAndBuildSameBranchOnUpstream "${SHARE_UPSTREAM_REPO}" "-Pbuild-docker-images -Pags -Dlicense.failOnNotUptodateHeader=true -Ddocker.quay-expires.value=NEVER ${REPO_IMAGE} -Ddependency.alfresco-community-repo.version=${COM_DEPENDENCY_VERSION}"
@@ -2,11 +2,11 @@
set +vx
function isPullRequestBuild() {
test "${TRAVIS_PULL_REQUEST}" != "false"
test "${PULL_REQUEST}" != "false"
}
function isBranchBuild() {
test "${TRAVIS_PULL_REQUEST}" = "false"
test "${PULL_REQUEST}" = "false"
}
function cloneRepo() {
@@ -82,15 +82,9 @@ function remoteBranchExists() {
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}"
# use the current branch name (or in case of PRs, the source branch name)
if remoteBranchExists "${UPSTREAM_REPO}" "${BRANCH_NAME}" ; then
echo "${BRANCH_NAME}"
exit 0
fi
@@ -12,8 +12,8 @@ if [ -z "${RELEASE_VERSION}" ]; then
exit 1
fi
SOURCE="s3://alfresco-artefacts-staging/alfresco-content-services-community/release/${TRAVIS_BRANCH}/${TRAVIS_BUILD_NUMBER}"
DESTINATION="s3://eu.dl.alfresco.com/release/community/${RELEASE_VERSION}-build-${TRAVIS_BUILD_NUMBER}"
SOURCE="s3://alfresco-artefacts-staging/alfresco-content-services-community/release/${BRANCH_NAME}/${BUILD_NUMBER}"
DESTINATION="s3://eu.dl.alfresco.com/release/community/${RELEASE_VERSION}-build-${BUILD_NUMBER}"
printf "\n%s\n%s\n" "${SOURCE}" "${DESTINATION}"
@@ -5,7 +5,7 @@ set -vex
pushd "$(dirname "${BASH_SOURCE[0]}")/../../"
# 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
# Docker Logins
+4 -3
View File
@@ -11,16 +11,17 @@ if [ -z "${RELEASE_VERSION}" ] || [ -z "${DEVELOPMENT_VERSION}" ]; then
fi
# Use full history for release
git checkout -B "${TRAVIS_BRANCH}"
# Add email to link commits to user
git checkout -B "${BRANCH_NAME}"
# Define git identity for commits
git config user.email "${GIT_EMAIL}"
git config user.name "${GIT_USERNAME}"
mvn -B \
-ntp \
-Prelease,all-tas-tests -Pags \
-DreleaseVersion="${RELEASE_VERSION}" \
-DdevelopmentVersion="${DEVELOPMENT_VERSION}" \
"-Darguments=-Prelease,all-tas-tests -Pags -DskipTests -Dbuild-number=${TRAVIS_BUILD_NUMBER}" \
"-Darguments=-Prelease,all-tas-tests -Pags -DskipTests -Dbuild-number=${BUILD_NUMBER}" \
release:clean release:prepare release:perform \
-DscmCommentPrefix="[maven-release-plugin][skip ci] " \
-Dusername="${GIT_USERNAME}" \
+1 -1
View File
@@ -6,7 +6,7 @@
<parent>
<groupId>org.alfresco</groupId>
<artifactId>acs-community-packaging</artifactId>
<version>7.3.0-A27</version>
<version>7.4.0-DEV</version>
</parent>
<modules>
+1 -1
View File
@@ -9,7 +9,7 @@
<parent>
<groupId>org.alfresco</groupId>
<artifactId>content-repository-community-tests</artifactId>
<version>7.3.0-A27</version>
<version>7.4.0-DEV</version>
</parent>
<developers>
+1 -1
View File
@@ -9,7 +9,7 @@
<parent>
<groupId>org.alfresco</groupId>
<artifactId>content-repository-community-tests</artifactId>
<version>7.3.0-A27</version>
<version>7.4.0-DEV</version>
</parent>
<properties>
+1 -1
View File
@@ -9,7 +9,7 @@
<parent>
<groupId>org.alfresco</groupId>
<artifactId>content-repository-community-tests</artifactId>
<version>7.3.0-A27</version>
<version>7.4.0-DEV</version>
</parent>
<developers>
+1 -1
View File
@@ -9,7 +9,7 @@
<parent>
<groupId>org.alfresco</groupId>
<artifactId>content-repository-community-tests</artifactId>
<version>7.3.0-A27</version>
<version>7.4.0-DEV</version>
</parent>
<developers>
+1 -1
View File
@@ -9,7 +9,7 @@
<parent>
<groupId>org.alfresco</groupId>
<artifactId>content-repository-community-tests</artifactId>
<version>7.3.0-A27</version>
<version>7.4.0-DEV</version>
</parent>
<developers>
@@ -0,0 +1,6 @@
<html>
<head></head>
<body>
Hello ${args.name}!
</body>
</html>
+1 -1
View File
@@ -9,7 +9,7 @@
<parent>
<groupId>org.alfresco</groupId>
<artifactId>content-repository-community-tests</artifactId>
<version>7.3.0-A27</version>
<version>7.4.0-DEV</version>
</parent>
<developers>