mirror of
https://github.com/Alfresco/acs-community-packaging.git
synced 2026-09-16 18:13:21 +00:00
Compare commits
49
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bcbdbe24ed | ||
|
|
c29be6e0c5 | ||
|
|
f49a6180ab | ||
|
|
5f23701a8a | ||
|
|
8b52cfe842 | ||
|
|
050b92b6a0 | ||
|
|
ebb33bda40 | ||
|
|
f6e275b006 | ||
|
|
ea9b2226bc | ||
|
|
37305d6c9a | ||
|
|
fe35f9c405 | ||
|
|
644d078bce | ||
|
|
603fd42135 | ||
|
|
748008bbdd | ||
|
|
23b5a1c2ad | ||
|
|
ef4f20e2d6 | ||
|
|
686d87ba12 | ||
|
|
b3c00c30cc | ||
|
|
a1050850a6 | ||
|
|
b619edf527 | ||
|
|
35cddb41ae | ||
|
|
eff91d1938 | ||
|
|
c863fb1415 | ||
|
|
3f9358d36e | ||
|
|
7148989131 | ||
|
|
c4fe156c22 | ||
|
|
31045e9be9 | ||
|
|
96e541e093 | ||
|
|
0784965343 | ||
|
|
fbe8de0806 | ||
|
|
3bed192359 | ||
|
|
a560fefaf9 | ||
|
|
b9289e78b9 | ||
|
|
ab97fdc1f2 | ||
|
|
e315dc33c7 | ||
|
|
5d2d97cd84 | ||
|
|
d792192894 | ||
|
|
84b7bf0714 | ||
|
|
b4ea7974cf | ||
|
|
90d8846198 | ||
|
|
c3e2f46616 | ||
|
|
5a78caede3 | ||
|
|
c947e76a54 | ||
|
|
ac57bf56c6 | ||
|
|
30713000df | ||
|
|
41722e9855 | ||
|
|
c45648d3ae | ||
|
|
00ae0d0e0e | ||
|
|
dc919cce72 |
@@ -0,0 +1,44 @@
|
||||
<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>alfresco-public</id>
|
||||
<username>${env.MAVEN_USERNAME}</username>
|
||||
<password>${env.MAVEN_PASSWORD}</password>
|
||||
</server>
|
||||
</servers>
|
||||
</settings>
|
||||
+65
-2
@@ -19,10 +19,18 @@ branches:
|
||||
only:
|
||||
- master
|
||||
- develop
|
||||
- feature/REPO-4735_Add-release-stages
|
||||
|
||||
matrix:
|
||||
stages:
|
||||
- name: test
|
||||
if: branch !=feature/REPO-4735_Add-release-stages
|
||||
- engineering release
|
||||
- company release
|
||||
|
||||
jobs:
|
||||
include:
|
||||
- name: "WhiteSource scan"
|
||||
- stage: test
|
||||
name: "WhiteSource scan"
|
||||
# only on develop and if it is not a PR
|
||||
if: fork = false AND branch = develop AND type != pull_request
|
||||
install:
|
||||
@@ -88,3 +96,58 @@ 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 AND commit_message !~ /\[no-release\]/
|
||||
# Leaving blank will auto increment the
|
||||
env:
|
||||
- release_version=repo-4735-1
|
||||
- development_version=6.3.0-alpha-6-SNAPSHOT
|
||||
- COMM_RELEASE_VERSION=
|
||||
# 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_install:
|
||||
- ./scripts/travis/verifyReleaseTag.sh
|
||||
- "cp .travis.settings.xml $HOME/.m2/settings.xml"
|
||||
# install: skip # Release command from bamboo
|
||||
install: ./scripts/travis/buildRelease.sh ${release_version} ${development_version}
|
||||
script:
|
||||
- travis_wait 30 echo "This is the Maven relase stage"
|
||||
# before_deploy: pip install awscli
|
||||
# deploy:
|
||||
# -provider: s3
|
||||
# access_key_id: ${AWS_ACCESS_KEY_ID}
|
||||
# secret_access_key: ${AWS_SECRET_ACCESS_KEY}
|
||||
# bucket: "alfresco-artefacts-staging/alfresco-content-services-community/release/${TRAVIS_BRANCH}/${TRAVIS_BUILD_NUMBER}/"
|
||||
# skip_cleanup: true
|
||||
# acl: private
|
||||
# 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/alfresco-content-services-community/release/${TRAVIS_BRANCH}/${TRAVIS_BUILD_NUMBER}/"
|
||||
# skip_cleanup: true
|
||||
# acl: private
|
||||
# glob: distribution/target/*-distribution*.zip
|
||||
# on:
|
||||
# all_branches:true
|
||||
# condition: $TRAVIS_BRANCH =~ ^(master|develop)$
|
||||
# -provider: script
|
||||
# script: ./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: pip install awscli --user
|
||||
script:
|
||||
- travis_wait 30 echo "This is the Copy to S3 Release stage" # As this is copying between S3 buckets a script will be required.
|
||||
@@ -7,7 +7,7 @@
|
||||
<parent>
|
||||
<groupId>org.alfresco</groupId>
|
||||
<artifactId>acs-community-packaging</artifactId>
|
||||
<version>6.3.0-SNAPSHOT</version>
|
||||
<version>repo-4735-1</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<parent>
|
||||
<groupId>org.alfresco</groupId>
|
||||
<artifactId>acs-community-packaging</artifactId>
|
||||
<version>6.3.0-SNAPSHOT</version>
|
||||
<version>repo-4735-1</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
|
||||
@@ -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>repo-4735-1</version>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<parent>
|
||||
@@ -49,7 +49,7 @@
|
||||
<connection>scm:git:git@github.com:Alfresco/acs-community-packaging.git</connection>
|
||||
<developerConnection>scm:git:git@github.com:Alfresco/acs-community-packaging.git</developerConnection>
|
||||
<url>https://github.com/Alfresco/acs-community-packaging</url>
|
||||
<tag>HEAD</tag>
|
||||
<tag>acs-community-packaging-repo-4735-1</tag>
|
||||
</scm>
|
||||
|
||||
<distributionManagement>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<parent>
|
||||
<groupId>org.alfresco</groupId>
|
||||
<artifactId>acs-community-packaging</artifactId>
|
||||
<version>6.3.0-SNAPSHOT</version>
|
||||
<version>repo-4735-1</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
Executable
+31
@@ -0,0 +1,31 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
releaseVersion=$1
|
||||
developmentVersion=$2
|
||||
scm_path=$(mvn help:evaluate -Dexpression=project.scm.url -q -DforceStdout)
|
||||
|
||||
if [ -z ${releaseVersion} ] || [ -z ${developmentVersion} ];
|
||||
then echo skip
|
||||
# mvn --batch-mode \
|
||||
# -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 \
|
||||
-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:prepare release:perform
|
||||
fi
|
||||
Executable
+16
@@ -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
|
||||
@@ -0,0 +1,21 @@
|
||||
#!/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`
|
||||
|
||||
echo "
|
||||
$echo_s3_location/$branch_name/$build_number/alfresco.war\n
|
||||
$echo_s3_location/$branch_name/$build_number/$distribution_zip_name\n
|
||||
" >> target/README.txt
|
||||
Executable
+35
@@ -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
|
||||
+2
-2
@@ -1,13 +1,13 @@
|
||||
<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>
|
||||
<artifactId>content-repository-community-tas-tests-parent</artifactId>
|
||||
<version>6.3.0-SNAPSHOT</version>
|
||||
<version>6.3.0-alpha-6-SNAPSHOT</version>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<parent>
|
||||
<groupId>org.alfresco</groupId>
|
||||
<artifactId>acs-community-packaging</artifactId>
|
||||
<version>6.3.0-SNAPSHOT</version>
|
||||
<version>6.3.0-alpha-6-SNAPSHOT</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
|
||||
@@ -4,13 +4,13 @@
|
||||
<groupId>org.alfresco.tas</groupId>
|
||||
<artifactId>content-repository-community-cmis-test</artifactId>
|
||||
<name>content-repository-community-cmis-test</name>
|
||||
<version>6.3.0-SNAPSHOT</version>
|
||||
<version>6.3.0-alpha-6-SNAPSHOT</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<parent>
|
||||
<groupId>org.alfresco</groupId>
|
||||
<artifactId>content-repository-community-tas-tests-parent</artifactId>
|
||||
<version>6.3.0-SNAPSHOT</version>
|
||||
<version>6.3.0-alpha-6-SNAPSHOT</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
|
||||
@@ -4,13 +4,13 @@
|
||||
<groupId>org.alfresco.tas</groupId>
|
||||
<artifactId>content-repository-community-email-test</artifactId>
|
||||
<name>content-repository-community-email-test</name>
|
||||
<version>6.3.0-SNAPSHOT</version>
|
||||
<version>6.3.0-alpha-6-SNAPSHOT</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<parent>
|
||||
<groupId>org.alfresco</groupId>
|
||||
<artifactId>content-repository-community-tas-tests-parent</artifactId>
|
||||
<version>6.3.0-SNAPSHOT</version>
|
||||
<version>6.3.0-alpha-6-SNAPSHOT</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
|
||||
@@ -4,13 +4,13 @@
|
||||
<groupId>org.alfresco.tas</groupId>
|
||||
<artifactId>content-repository-community-integration-test</artifactId>
|
||||
<name>content-repository-community-integration-test</name>
|
||||
<version>6.3.0-SNAPSHOT</version>
|
||||
<version>6.3.0-alpha-6-SNAPSHOT</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<parent>
|
||||
<groupId>org.alfresco</groupId>
|
||||
<artifactId>content-repository-community-tas-tests-parent</artifactId>
|
||||
<version>6.3.0-SNAPSHOT</version>
|
||||
<version>6.3.0-alpha-6-SNAPSHOT</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
|
||||
@@ -4,13 +4,13 @@
|
||||
<groupId>org.alfresco.tas</groupId>
|
||||
<artifactId>content-repository-community-restapi-test</artifactId>
|
||||
<name>content-repository-community-restapi-test</name>
|
||||
<version>6.3.0-SNAPSHOT</version>
|
||||
<version>6.3.0-alpha-6-SNAPSHOT</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<parent>
|
||||
<groupId>org.alfresco</groupId>
|
||||
<artifactId>content-repository-community-tas-tests-parent</artifactId>
|
||||
<version>6.3.0-SNAPSHOT</version>
|
||||
<version>6.3.0-alpha-6-SNAPSHOT</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
|
||||
@@ -4,13 +4,13 @@
|
||||
<groupId>org.alfresco.tas</groupId>
|
||||
<artifactId>content-repository-community-webdav-test</artifactId>
|
||||
<name>content-repository-community-webdav-test</name>
|
||||
<version>6.3.0-SNAPSHOT</version>
|
||||
<version>6.3.0-alpha-6-SNAPSHOT</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<parent>
|
||||
<groupId>org.alfresco</groupId>
|
||||
<artifactId>content-repository-community-tas-tests-parent</artifactId>
|
||||
<version>6.3.0-SNAPSHOT</version>
|
||||
<version>6.3.0-alpha-6-SNAPSHOT</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
<parent>
|
||||
<groupId>org.alfresco</groupId>
|
||||
<artifactId>acs-community-packaging</artifactId>
|
||||
<version>6.3.0-SNAPSHOT</version>
|
||||
<version>repo-4735-1</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user