Compare commits

...

93 Commits

Author SHA1 Message Date
Travis CI User
f95dc7f7a1 [maven-release-plugin][skip ci] prepare release acs-community-packaging-6.3.0-repo-4735-2-9 2020-03-02 15:59:07 +00:00
David Edwards
3ab9153a66 Update .travis.yml 2020-03-02 15:30:23 +00:00
David Edwards
a90447885e Add dockerhub credentials 2020-03-02 15:22:54 +00:00
David Edwards
beadd08090 Remove alfresco-public, rename QUAY creds 2020-02-28 17:52:08 +00:00
David Edwards
89fab9b670 Bump release version 2020-02-28 17:41:48 +00:00
Travis CI User
193e4116d0 [maven-release-plugin][skip ci] prepare for next development iteration 2020-02-28 17:13:34 +00:00
Travis CI User
391eb399a7 [maven-release-plugin][skip ci] prepare release acs-community-packaging-6.3.0-repo-4735-2-7 2020-02-28 17:13:28 +00:00
David Edwards
028dfc59a3 Update .travis.yml 2020-02-28 16:45:07 +00:00
David Edwards
210d3d070a Correct naming of image
Should now be: alfresco/alfresco-content-repository-community-test-release:tag
2020-02-28 16:28:10 +00:00
David Edwards
07f257dda7 Silence install, increment release version 2020-02-28 16:27:13 +00:00
Travis CI User
5f85067681 [maven-release-plugin][skip ci] prepare for next development iteration 2020-02-28 16:08:45 +00:00
Travis CI User
384aca442d [maven-release-plugin][skip ci] prepare release acs-community-packaging-6.3.0-repo-4735-2-6 2020-02-28 16:08:40 +00:00
David Edwards
541d209448 Update Dockerfile 2020-02-28 15:40:37 +00:00
David Edwards
52f03e7a7f Rearrange pom profiles 2020-02-28 15:40:25 +00:00
David Edwards
189b88b812 Bump release version 2020-02-28 15:36:49 +00:00
David Edwards
01874c8cb5 Update .travis.yml 2020-02-28 15:36:27 +00:00
David Edwards
2424ea9edd Update pom.xml 2020-02-28 15:36:12 +00:00
David Edwards
c1545b37ea Use project version as image tag for communityDocker (temp) 2020-02-28 15:36:04 +00:00
David Edwards
8a8f58c8d7 Rename images 2020-02-28 15:34:48 +00:00
Travis CI User
a5041bcc83 [maven-release-plugin][skip ci] rollback the release of acs-community-packaging-6.3.0-repo-4735-2-4 2020-02-28 15:28:50 +00:00
Travis CI User
861112707b [maven-release-plugin][skip ci] prepare release acs-community-packaging-6.3.0-repo-4735-2-4 2020-02-28 15:28:23 +00:00
David Edwards
ebe2a6f75a Comment out dockerhub creds 2020-02-28 15:24:18 +00:00
David Edwards
ffa9149176 Run install
To download dependencies before trying release stage, to hopefully prevent time out.
2020-02-28 15:17:18 +00:00
David Edwards
88af802b4c Update version to 6.3.0-SNAPSHOT 2020-02-28 15:11:16 +00:00
David Edwards
ade117c405 Merge branch 'feature/REPO-4735_Add-release-stages-2' of github.com:Alfresco/acs-community-packaging into feature/REPO-4735_Add-release-stages-2 2020-02-28 15:09:52 +00:00
Travis CI User
e712b9ded8 [maven-release-plugin][skip ci] rollback the release of acs-community-packaging-6.3.0-repo-4735-2-4 2020-02-28 15:08:18 +00:00
David Edwards
4ca2e28f65 Use development_version variable 2020-02-28 15:07:56 +00:00
Travis CI User
12a4391350 [maven-release-plugin][skip ci] prepare release acs-community-packaging-6.3.0-repo-4735-2-4 2020-02-28 15:07:51 +00:00
David Edwards
131d4d053a Add cache maintainance 2020-02-28 15:07:23 +00:00
David Edwards
92c0dc7aae Timeouts.... 2020-02-28 14:41:58 +00:00
David Edwards
b56b82d4d9 Revert "Add build stage to cache downloads, to prevent timeout..."
This reverts commit fbb2d2836e.
2020-02-28 14:41:09 +00:00
David Edwards
7b005725b5 Revert "Update .travis.yml"
This reverts commit 3e70f80a74.
2020-02-28 14:41:05 +00:00
David Edwards
3e70f80a74 Update .travis.yml 2020-02-28 14:40:10 +00:00
David Edwards
fbb2d2836e Add build stage to cache downloads, to prevent timeout... 2020-02-28 14:38:26 +00:00
Travis CI User
ca0a19ed3d [maven-release-plugin][skip ci] prepare for next development iteration 2020-02-28 14:20:29 +00:00
Travis CI User
a41a30bea9 [maven-release-plugin][skip ci] prepare release acs-community-packaging-6.3.0-repo-4735-2-4 2020-02-28 14:20:22 +00:00
David Edwards
2ed693a822 Fix docker-maven plugin version 2020-02-28 13:52:41 +00:00
David Edwards
e7c71ac239 Update .travis.yml 2020-02-28 13:49:20 +00:00
David Edwards
de795f8b63 Update .travis.yml 2020-02-28 13:48:53 +00:00
David Edwards
2f35d58503 Merge branch 'feature/REPO-4735_Add-release-stages-2' of github.com:Alfresco/acs-community-packaging into feature/REPO-4735_Add-release-stages-2 2020-02-28 13:47:57 +00:00
David Edwards
c85fe9924b Combine release stages 2020-02-28 13:47:53 +00:00
David Edwards
abb3b4cbf3 Use docker-maven plugin instead of fabric8-maven plugin
fabric8 maven plugin attempts to build in Kubernetes mode. This is not needed to create acs images.
2020-02-28 13:47:25 +00:00
Travis CI User
236a943643 [maven-release-plugin][skip ci] prepare for next development iteration 2020-02-28 13:45:34 +00:00
Travis CI User
15ac47205f [maven-release-plugin][skip ci] prepare release acs-community-packaging-6.3.0-repo-4735-2-3 2020-02-28 13:45:28 +00:00
David Edwards
768ee33878 Set version to 6.3.0-SNAPSHOT 2020-02-28 13:45:16 +00:00
David Edwards
92ff0105e4 Update .travis.yml 2020-02-28 13:19:26 +00:00
David Edwards
8d5fabf930 Comment out apply amps 2020-02-28 13:17:06 +00:00
David Edwards
d09a9b44df Update .travis.yml 2020-02-28 13:16:42 +00:00
Travis CI User
2ee12e749b [maven-release-plugin][skip ci] prepare for next development iteration 2020-02-28 12:11:00 +00:00
Travis CI User
6de667cc56 [maven-release-plugin][skip ci] prepare release acs-community-packaging-6.3.0-repo-4735-2-2 2020-02-28 12:10:54 +00:00
David Edwards
63bce60c31 Add docker login details to settings and remove from travis.yml 2020-02-28 11:44:36 +00:00
David Edwards
0580c3820a Update release version to 6.3.0-<dev_release> + uncomment apply amps
The warfile generated doesn't recognise the repo-xxxx- release version and has a version of 0.0.0. This may be the cause of the docker file errors.
2020-02-28 11:43:56 +00:00
David Edwards
ce784460e9 Rename image name, add alias for debugging
We don't want to accidentally override the latest tag with WIP builds.
2020-02-28 11:41:59 +00:00
David Edwards
9496feaefe Merge branch 'feature/REPO-4735_Add-release-stages-2' of github.com:Alfresco/acs-community-packaging into feature/REPO-4735_Add-release-stages-2 2020-02-28 11:41:13 +00:00
Travis CI User
06a65098c0 [maven-release-plugin][skip ci] prepare for next development iteration 2020-02-28 09:51:19 +00:00
Travis CI User
7929123554 [maven-release-plugin][skip ci] prepare release acs-community-packaging-repo-4735-2-2 2020-02-28 09:51:13 +00:00
David Edwards
95aaa819e0 Add clean install with release:perform
The dockerfile recommends this when building....
2020-02-28 09:34:18 +00:00
David Edwards
4041c9495d Separate release jobs put detailed logging on perform
NOTE. This is done with the "RUN java -jar ${TOMCAT_DIR}/alfresco-mmt/alfresco-mmt*.jar install ${TOMCAT_DIR}/amps ${TOMCAT_DIR}/webapps/alfresco -directory -nobackup -force" commented out as this was a point of error in the acs-packaging build number 1636 https://travis-ci.com/Alfresco/acs-packaging/builds/150667508
2020-02-28 09:24:53 +00:00
Travis CI User
bd96c27d37 [maven-release-plugin][skip ci] prepare for next development iteration 2020-02-27 17:25:38 +00:00
Travis CI User
ff9685ac67 [maven-release-plugin][skip ci] prepare release acs-community-packaging-repo-4735-2-1 2020-02-27 17:25:33 +00:00
David Edwards
8d3762f416 Bump release version 2020-02-27 16:59:38 +00:00
Travis CI User
ed26c7b258 [maven-release-plugin][skip ci] rollback the release of acs-community-packaging-repo-4735-16 2020-02-27 16:56:16 +00:00
Travis CI User
117b65879f [maven-release-plugin][skip ci] prepare release acs-community-packaging-repo-4735-16 2020-02-27 16:56:05 +00:00
David Edwards
068e7066bf add extra logging and remove release:clean 2020-02-27 16:54:29 +00:00
Travis CI User
6a6df0dccd [maven-release-plugin][skip ci] rollback the release of acs-community-packaging-repo-4735-16 2020-02-27 16:48:05 +00:00
Travis CI User
6ed957ca77 [maven-release-plugin][skip ci] prepare release acs-community-packaging-repo-4735-16 2020-02-27 16:47:21 +00:00
David Edwards
9c4b53bec8 Merge branch 'feature/REPO-4735_Add-release-stages-2' of github.com:Alfresco/acs-community-packaging into feature/REPO-4735_Add-release-stages-2 2020-02-27 16:20:56 +00:00
David Edwards
656c3a9c0f Update .travis.yml 2020-02-27 16:20:51 +00:00
Travis CI User
9b07a93890 [maven-release-plugin][skip ci] rollback the release of acs-community-packaging-repo-4735-16 2020-02-27 16:19:18 +00:00
Travis CI User
d0e6c6bed7 [maven-release-plugin][skip ci] prepare release acs-community-packaging-repo-4735-16 2020-02-27 16:19:05 +00:00
David Edwards
66044db9cc Comment out amp installation
Potential place for errors.
2020-02-27 16:01:53 +00:00
Travis CI User
1df4c8f7c2 [maven-release-plugin][skip ci] prepare for next development iteration 2020-02-27 13:11:34 +00:00
Travis CI User
1e6b797d57 [maven-release-plugin][skip ci] prepare release acs-community-packaging-repo-4735-16 2020-02-27 13:11:27 +00:00
David Edwards
d03689f5d3 Update release version 2020-02-27 13:09:44 +00:00
Travis CI User
99fc0a330a [maven-release-plugin][skip ci] rollback the release of acs-community-packaging-repo-4735-15 2020-02-27 12:47:50 +00:00
Travis CI User
16ad37b169 [maven-release-plugin][skip ci] prepare release acs-community-packaging-repo-4735-15 2020-02-27 12:47:04 +00:00
David Edwards
1798d0fd2b Remove detailed logging
Hit log limit in travis
2020-02-27 12:21:23 +00:00
Travis CI User
1bb7035e68 [maven-release-plugin][skip ci] prepare for next development iteration 2020-02-27 12:09:13 +00:00
Travis CI User
65d3a861ec [maven-release-plugin][skip ci] prepare release acs-community-packaging-repo-4735-15 2020-02-27 12:09:04 +00:00
David Edwards
524228771d REPO-4735 Fix java11 javadoc 8 error
(cherry picked from commit 91f66cdacc)
2020-02-27 11:40:07 +00:00
David Edwards
0f96d69af6 REPO-4735-Use https scm connection
(cherry picked from commit d8c15c846c)
2020-02-27 11:40:01 +00:00
David Edwards
541cb9a326 Create .travis.settings.xml 2020-02-27 11:35:05 +00:00
David Edwards
3401c50215 Make scripts executable 2020-02-27 11:28:40 +00:00
David Edwards
8d1e2a5d5f Add WIP scripts from original branch 2020-02-27 11:21:57 +00:00
David Edwards
4441e82213 Create verifyReleaseTag.sh 2020-02-27 11:21:35 +00:00
David Edwards
b95a7df236 Add branch to build 2020-02-27 11:17:16 +00:00
David Edwards
a4dcd3b5b5 Update .travis.yml 2020-02-27 11:12:18 +00:00
David Edwards
fb0d9b0b37 Replace USERNAME with LINUXUSERNAME to fix windows error 2020-02-27 11:05:54 +00:00
David Edwards
e592d0bf23 Add WIP release stages from original branch 2020-02-27 11:03:46 +00:00
David Edwards
405dd92d8d Disable test stage 2020-02-27 11:03:24 +00:00
David Edwards
48fde80eca Remove extra line 2020-02-27 11:03:10 +00:00
David Edwards
a376256826 Add stages to travis 2020-02-27 11:02:31 +00:00
David Edwards
60cd53cd2d Add branch to build 2020-02-27 11:01:57 +00:00
13 changed files with 304 additions and 39 deletions

49
.travis.settings.xml Normal file
View File

@@ -0,0 +1,49 @@
<settings>
<profiles>
<profile>
<id>alfresco-internal</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<repositories>
<repository>
<id>alfresco-internal</id>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
<name>Alfresco Internal Repository</name>
<url>https://artifacts.alfresco.com/nexus/content/groups/internal</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>alfresco-internal</id>
<name>Alfresco Internal Repository</name>
<url>https://artifacts.alfresco.com/nexus/content/groups/public</url>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
<servers>
<server>
<id>alfresco-internal</id>
<username>${env.MAVEN_USERNAME}</username>
<password>${env.MAVEN_PASSWORD}</password>
</server>
<server>
<id>quay.io</id>
<username>${env.QUAY_USERNAME}</username>
<password>${env.QUAY_PASSWORD}</password>
</server>
<server>
<id>docker.io</id>
<username>${env.DOCKERHUB_USERNAME}</username>
<password>${env.DOCKERHUB_PASSWORD}</password>
</server>
</servers>
</settings>

View File

@@ -10,7 +10,9 @@ services:
cache:
directories:
- $HOME/.m2
# the cache can grow constantly
before_cache:
- rm -rf $HOME/.m2/repository/org/alfresco
env:
global:
- VERSION_EDITION=Community
@@ -19,10 +21,20 @@ branches:
only:
- master
- develop
- feature/REPO-4735_Add-release-stages-2
stages:
- name: test
if: branch !=feature/REPO-4735_Add-release-stages-2
- engineering release
- company release
before_install: "cp .travis.settings.xml $HOME/.m2/settings.xml"
matrix:
include:
- name: "WhiteSource scan"
- stage: test
name: "WhiteSource scan"
# only on master and if it is not a PR
if: fork = false AND branch = master AND type != pull_request
install:
@@ -88,3 +100,83 @@ matrix:
- ./tests/scripts/wait-for-alfresco-start.sh "http://localhost:8082/alfresco"
script:
- travis_wait 30 mvn install -q -f tests/tas-integration/pom.xml -Pall-tas-tests -Denvironment=default -DrunBugs=false
- stage: Engineering Release
name: "Maven release"
# only on develop or master branch
if: fork = false AND branch = feature/REPO-4735_Add-release-stages-2 AND commit_message !~ /\[no-release\]/
# Leaving blank will auto increment the
env:
# Must be in the format <alfresco-version>-<additional_versioning> ie. 6.3.0-repo-xxxx-x or 6.3.0-A-x
- release_version=6.3.0-repo-4735-2-9
- development_version=6.3.0-SNAPSHOT
- COMM_RELEASE_VERSION=
install: travis_wait 30 mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V -q
# Fail the job if there is a docker image tag that matches the release_version (or project version in the POM if not set)
before_script: bash ./scripts/travis/verifyReleaseTag.sh
script:
# Use full history for release
- git checkout -B "${TRAVIS_BRANCH}"
# Add email to link commits to user
- git config user.email "${GIT_EMAIL}"
# run build release script
# - ./scripts/travis/buildRelease.sh ${release_version} ${development_version}
# - travis_wait 30 mvn -B -DskipTests -Darguments="-DskipTests"
- travis_wait 30 mvn -B -DskipTests -Darguments="-DskipTests" -Prelease -DscmCommentPrefix="[maven-release-plugin][skip ci] " -Dusername="${GIT_USERNAME}" -Dpassword="${GIT_PASSWORD}" -DdevelopmentVersion=${development_version} -DreleaseVersion=${release_version} release:prepare -q
- travis_wait 30 mvn -B -DskipTests -Darguments="-DskipTests" -Prelease -DscmCommentPrefix="[maven-release-plugin][skip ci] " -Dusername="${GIT_USERNAME}" -Dpassword="${GIT_PASSWORD}" -DdevelopmentVersion=${development_version} -DreleaseVersion=${release_version} release:perform -X
after_failure:
- mvn release:rollback -DscmCommen tPrefix="[maven-release-plugin][skip ci] "
# TODO: SOLUTION 1
# Below is a potential solution for deployment of resources
# deploy:
# - provider: s3
# access_key_id: ${AWS_ACCESS_KEY_ID}
# secret_access_key: ${AWS_SECRET_ACCESS_KEY}
# bucket: "alfresco-artefacts-staging"
# skip_cleanup: true
# acl: private
# upload_dir:"/alfresco-content-services-community/release/${TRAVIS_BRANCH}/${TRAVIS_BUILD_NUMBER}/"
# glob: war/target/alfresco.war
# on:
# all_branches:true
# condition: $TRAVIS_BRANCH =~ ^(master|develop)$
# - provider: s3
# access_key_id: ${AWS_ACCESS_KEY_ID}
# secret_access_key: ${AWS_SECRET_ACCESS_KEY}
# bucket: "alfresco-artefacts-staging/"
# skip_cleanup: true
# acl: private
# upload_dir: "alfresco-content-services-community/release/${TRAVIS_BRANCH}/${TRAVIS_BUILD_NUMBER}/"
# glob: distribution/target/*-distribution*.zip
# on:
# all_branches:true
# condition: $TRAVIS_BRANCH =~ ^(master|develop)$
# TODO: SOLUTION 2
# Uses AWS CLI in script
before_deploy: pip install awscli
deploy:
- provider: script
script: echo "This should only run on master and develop" #./scripts/travis/engineeringReleaseDeployment.sh ${TRAVIS_BUILD_NUMBER} ${TRAVIS_BRANCH}
on:
all_branches: true
condition: $TRAVIS_BRANCH =~ ^(master|develop)$
- provider: script
script: echo "This should only run on master" #./scripts/travis/companyReleaseDeployment.sh ${TRAVIS_BUILD_NUMBER} ${TRAVIS_BRANCH}
on:
branch: master
# # This stage could use a script to deploy to S3, as in bamboo, or the above stage can include a deploy section.
# - name: Push to S3 # TODO currently placeholder stage
# install: skip
# script:
# - travis_wait 30 echo "This is the Push to S3 stage"
# - stage: "Company Release"
# # only on master branch
# if: fork = false AND branch = feature/REPO-4735_Add-release-stages AND commit_message !~ /\[no-release\]/
# name: "Copy to S3 Release"
# install: skip # Nothing to build/install as we are just copying from S3 buckets
# # TODO
# delpoy:
# - provider: script
# script: ./scripts/travis/companyReleaseDeployment.sh ${TRAVIS_BUILD_NUMBER} ${TRAVIS_BRANCH}
# on:
# branch: master

View File

@@ -7,7 +7,7 @@
<parent>
<groupId>org.alfresco</groupId>
<artifactId>acs-community-packaging</artifactId>
<version>6.3.0-SNAPSHOT</version>
<version>6.3.0-repo-4735-2-9</version>
<relativePath>../pom.xml</relativePath>
</parent>

View File

@@ -5,7 +5,7 @@ FROM alfresco/alfresco-base-tomcat:8.5.43-java-11-openjdk-centos-7
# Set default user information
ARG GROUPNAME=Alfresco
ARG GROUPID=1000
ARG USERNAME=alfresco
ARG LINUXUSERNAME=alfresco
ARG USERID=33000
# Set default environment args
@@ -73,7 +73,7 @@ RUN yum install -y fontconfig-2.13.0-4.3.el7 \
RUN mkdir -p ${TOMCAT_DIR}/conf/Catalina/localhost && \
mkdir -p ${TOMCAT_DIR}/alf_data && \
groupadd -g ${GROUPID} ${GROUPNAME} && \
useradd -u ${USERID} -G ${GROUPNAME} ${USERNAME} && \
useradd -u ${USERID} -G ${GROUPNAME} ${LINUXUSERNAME} && \
chgrp -R ${GROUPNAME} ${TOMCAT_DIR} && \
chmod g+w ${TOMCAT_DIR}/logs && \
chmod g+rx ${TOMCAT_DIR}/conf && \
@@ -94,4 +94,4 @@ RUN mkdir -p ${TOMCAT_DIR}/conf/Catalina/localhost && \
# Changes are also required to the docker-compose/docker-compose.yml file.
# EXPOSE 8000
USER ${USERNAME}
USER ${LINUXUSERNAME}

View File

@@ -7,7 +7,7 @@
<parent>
<groupId>org.alfresco</groupId>
<artifactId>acs-community-packaging</artifactId>
<version>6.3.0-SNAPSHOT</version>
<version>6.3.0-repo-4735-2-9</version>
<relativePath>../pom.xml</relativePath>
</parent>
@@ -216,12 +216,12 @@
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>fabric8-maven-plugin</artifactId>
<version>${dependency.fabric8.version}</version>
<artifactId>docker-maven-plugin</artifactId>
<version>${dependency.docker-maven.version}</version>
<configuration>
<images>
<image>
<name>${image.name}</name>
<name>${image.name}:${project.version}</name>
<build>
<dockerFileDir>${project.basedir}/</dockerFileDir>
</build>
@@ -239,8 +239,8 @@
<plugins>
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>fabric8-maven-plugin</artifactId>
<version>${dependency.fabric8.version}</version>
<artifactId>docker-maven-plugin</artifactId>
<version>${dependency.docker-maven.version}</version>
<executions>
<execution>
<id>build-image</id>
@@ -261,8 +261,8 @@
<plugins>
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>fabric8-maven-plugin</artifactId>
<version>${dependency.fabric8.version}</version>
<artifactId>docker-maven-plugin</artifactId>
<version>${dependency.docker-maven.version}</version>
<configuration>
<images>
<image>
@@ -295,8 +295,8 @@
<plugins>
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>fabric8-maven-plugin</artifactId>
<version>${dependency.fabric8.version}</version>
<artifactId>docker-maven-plugin</artifactId>
<version>${dependency.docker-maven.version}</version>
<configuration>
<images>
<image>
@@ -335,19 +335,21 @@
<plugins>
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>fabric8-maven-plugin</artifactId>
<version>${dependency.fabric8.version}</version>
<artifactId>docker-maven-plugin</artifactId>
<version>${dependency.docker-maven.version}</version>
<configuration>
<images>
<image>
<name>${image.name}:${project.version}</name>
<alias>quay.io</alias>
<name>${image.name}-test-release:${project.version}</name>
<registry>${image.registry}</registry>
<build>
<dockerFileDir>${project.basedir}/</dockerFileDir>
</build>
</image>
<image>
<name>${image.name}:${project.version}</name>
<alias>dockerhub</alias>
<name>${image.name}-test-release:${project.version}</name>
<build>
<dockerFileDir>${project.basedir}/</dockerFileDir>
</build>

View File

@@ -4,6 +4,6 @@ SHARE_TAG=6.2.0
SOLR6_TAG=1.4.1
POSTGRES_TAG=11.4
ACTIVEMQ_TAG=5.15.8
REGISTRY=
REGISTRY=test-
LEGACY_TRANSFORM_SERVICE_ENABLED=true
LOCAL_TRANSFORM_SERVICE_ENABLED=true

46
pom.xml
View File

@@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<artifactId>acs-community-packaging</artifactId>
<name>Alfresco Content Services Community Packaging</name>
<version>6.3.0-SNAPSHOT</version>
<version>6.3.0-repo-4735-2-9</version>
<packaging>pom</packaging>
<parent>
@@ -12,6 +12,18 @@
</parent>
<profiles>
<profile>
<id>fullBuild</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<modules>
<module>war</module>
<module>distribution</module>
<module>public-javadoc</module>
<module>docker-alfresco</module>
</modules>
</profile>
<profile>
<id>community</id>
<modules>
@@ -25,18 +37,6 @@
<module>docker-alfresco</module>
</modules>
</profile>
<profile>
<id>fullBuild</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<modules>
<module>war</module>
<module>distribution</module>
<module>public-javadoc</module>
<module>docker-alfresco</module>
</modules>
</profile>
<profile>
<id>all-tas-tests</id>
<modules>
@@ -46,10 +46,10 @@
</profiles>
<scm>
<connection>scm:git:git@github.com:Alfresco/acs-community-packaging.git</connection>
<developerConnection>scm:git:git@github.com:Alfresco/acs-community-packaging.git</developerConnection>
<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>HEAD</tag>
<tag>acs-community-packaging-6.3.0-repo-4735-2-9</tag>
</scm>
<distributionManagement>
@@ -86,6 +86,7 @@
<dependency.spring.version>5.2.2.RELEASE</dependency.spring.version>
<dependency.fabric8.version>4.3.1</dependency.fabric8.version>
<dependency.docker-maven.version>0.33.0</dependency.docker-maven.version>
<dependency.jackson.version>2.10.2</dependency.jackson.version>
<dependency.jackson-databind.version>2.10.1</dependency.jackson-databind.version>
@@ -116,6 +117,8 @@
<dependency.tas-webdav.version>1.5</dependency.tas-webdav.version>
<dependency.tas-ftp.version>1.4</dependency.tas-ftp.version>
<dependency.tas-dataprep.version>2.3</dependency.tas-dataprep.version>
<maven.build.sourceVersion>11</maven.build.sourceVersion>
</properties>
<dependencyManagement>
@@ -543,4 +546,15 @@
</dependency>
</dependencies>
</dependencyManagement>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<source>11</source>
</configuration>
</plugin>
</plugins>
</build>
</project>

View File

@@ -5,7 +5,7 @@
<parent>
<groupId>org.alfresco</groupId>
<artifactId>acs-community-packaging</artifactId>
<version>6.3.0-SNAPSHOT</version>
<version>6.3.0-repo-4735-2-9</version>
<relativePath>../pom.xml</relativePath>
</parent>
<packaging>pom</packaging>

41
scripts/travis/buildRelease.sh Executable file
View File

@@ -0,0 +1,41 @@
#!/usr/bin/env bash
set -e
releaseVersion=$1
developmentVersion=$2
scm_path=$(mvn help:evaluate -Dexpression=project.scm.url -q -DforceStdout)
git checkout -B "${TRAVIS_BRANCH}"
if [ -z ${releaseVersion} ] || [ -z ${developmentVersion} ];
then echo skip
if ${TRAVIS_BRANCH} == "master";
then echo "Please provide a Release and Development verison"
exit -1
fi
# mvn --batch-mode \
# -Dusername="${GIT_USERNAME}" \
# -Dpassword="${GIT_PASSWORD}" \
# -Dbuild-number=${TRAVIS_BUILD_NUMBER} \
# -Dbuild-name="${TRAVIS_BUILD_STAGE_NAME}" \
# -Dscm-path=${scm_path} \
# -DscmCommentPrefix="[maven-release-plugin][skip ci]" \
# -DskipTests \
# "-Darguments=-DskipTests -Dbuild-number=${TRAVIS_BUILD_NUMBER} '-Dbuild-name=${TRAVIS_BUILD_STAGE_NAME}' -Dscm-path=${scm_path} " \
# -Prelease \
# release:prepare release:perform
else
mvn --batch-mode \
-Dusername="${GIT_USERNAME}" \
-Dpassword="${GIT_PASSWORD}" \
-DreleaseVersion=${releaseVersion} \
-DdevelopmentVersion=${developmentVersion} \
-Dbuild-number=${TRAVIS_BUILD_NUMBER} \
-Dbuild-name="${TRAVIS_BUILD_STAGE_NAME}" \
-Dscm-path=${scm_path} \
-DscmCommentPrefix="[maven-release-plugin][skip ci]" \
-DskipTests \
"-Darguments=-DskipTests -Dbuild-number=${TRAVIS_BUILD_NUMBER} '-Dbuild-name=${TRAVIS_BUILD_STAGE_NAME}' -Dscm-path=${scm_path} " \
-Prelease \
release:clean release:prepare release:perform
fi

View File

@@ -0,0 +1,16 @@
#!/usr/bin/env bash
set -e
if [ ${COMM_RELEASE_VERSION} = "" ];
then
exit -1
fi
build_number=$1
branch_name=$2
build_stage=release
SOURCE=s3://alfresco-artefacts-staging/alfresco-content-services-community/$build_stage/$branch_name/$build_number
DESTINATION=s3://eu.dl.alfresco.com/release/community/$COMM_RELEASE_VERSION-build-$build_number
aws s3 cp --acl private $SOURCE/alfresco.war $DESTINATION/alfresco.war
aws s3 cp --acl private $SOURCE/alfresco-content-services-community-distribution-$release_version.zip $DESTINATION/alfresco-content-services-community-distribution-$release_version.zip

View File

@@ -0,0 +1,16 @@
#!/usr/bin/env bash
set -env
build_number=$1
branch_name=$2
release_stage=release
s3_location=s3://alfresco-artefacts-staging/alfresco-content-services-community/$release_stage/$branch_name/$build_number/
echo_s3_location=https://s3.console.aws.amazon.com/s3/buckets/alfresco-artefacts-staging/alfresco-content-services-community/$release_stage
aws s3 cp --acl private war/target/alfresco.war $s3_location
aws s3 cp --acl private distribution/target/*-distribution*.zip $s3_location
mkdir -p target
touch target/README.txt
distribution_zip_name=`ls distribution/target/*-distribution*.zip | xargs -n 1 basename`

View File

@@ -0,0 +1,35 @@
#!/usr/bin/env bash
set -e
alfresco_docker_image="alfresco/alfresco-content-repository-community"
if [ -v ${release_version} ]||[ -z ${release_version} ]; then
# if we don't have a user added release version, get the verison from the pom
pom_version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
if echo $pom_version | grep -q ".*-SNAPSHOT"; then
release_version=${pom_version%-*} # remove everything after the last '-'
else
release_version=$pom_version
fi
fi
docker_image_full_name="$alfresco_docker_image:$release_version"
function docker_image_exists() {
local image_full_name="$1"; shift
local wait_time="${1:-5}"
local search_term='Pulling|is up to date|not found'
echo "Looking to see if $image_full_name already exists..."
local result="$((timeout --preserve-status "$wait_time" docker 2>&1 pull "$image_full_name" &) | grep -v 'Pulling repository' | egrep -o "$search_term")"
test "$result" || { echo "Timed out too soon. Try using a wait_time greater than $wait_time..."; return 1 ;}
if echo $result | grep -vq 'not found'; then
true
else
false
fi
}
if docker_image_exists $docker_image_full_name; then
echo "Tag $release_version already pushed, release process will interrupt."
exit -1
else
echo "The $release_version tag was not found"
fi

View File

@@ -7,7 +7,7 @@
<parent>
<groupId>org.alfresco</groupId>
<artifactId>acs-community-packaging</artifactId>
<version>6.3.0-SNAPSHOT</version>
<version>6.3.0-repo-4735-2-9</version>
<relativePath>../pom.xml</relativePath>
</parent>