mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
review changes
This commit is contained in:
@@ -38,7 +38,6 @@
|
|||||||
</profile>
|
</profile>
|
||||||
</profiles>
|
</profiles>
|
||||||
|
|
||||||
|
|
||||||
<servers>
|
<servers>
|
||||||
<server>
|
<server>
|
||||||
<id>docker.io</id>
|
<id>docker.io</id>
|
||||||
|
10
.travis.yml
10
.travis.yml
@@ -9,10 +9,10 @@ services:
|
|||||||
|
|
||||||
branches:
|
branches:
|
||||||
only:
|
only:
|
||||||
- /release\/V3.0.*/
|
- /release\/V3.\d.*/
|
||||||
- /feature-3.0\/.*/
|
- /feature-3.\d\/.*/
|
||||||
- /merge-3.0\/.*/
|
- /merge-3.\d\/.*/
|
||||||
- /hotfix-3.0\/.*/
|
- /hotfix-3.\d\/.*/
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
@@ -20,7 +20,7 @@ cache:
|
|||||||
|
|
||||||
# the cache can grow constantly
|
# the cache can grow constantly
|
||||||
before_cache:
|
before_cache:
|
||||||
- rm -rf $HOME/.m2/repository/org/alfresco/alfresco-governace*
|
- rm -rf $HOME/.m2/repository/org/alfresco/alfresco-rm*
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- "cp .travis.settings.xml $HOME/.m2/settings.xml"
|
- "cp .travis.settings.xml $HOME/.m2/settings.xml"
|
||||||
|
@@ -1,10 +1,14 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
echo "Branch name: ${TRAVIS_BRANCH}"
|
echo "Branch name: ${TRAVIS_BRANCH}"
|
||||||
echo "Pull request: ${TRAVIS_PULL_REQUEST}"
|
echo "Pull request: ${TRAVIS_PULL_REQUEST}"
|
||||||
|
echo "Travis job name: ${TRAVIS_JOB_NAME}"
|
||||||
|
echo "Travis job id: ${TRAVIS_JOB_ID}"
|
||||||
branchName=${TRAVIS_BRANCH}
|
branchName=${TRAVIS_BRANCH}
|
||||||
imageTag=${branchName:8}
|
imageTag=${branchName:8}
|
||||||
echo "Image tag: ${imageTag}"
|
echo "Image tag: ${imageTag}"
|
||||||
|
|
||||||
|
case ${TRAVIS_JOB_NAME} in
|
||||||
|
"Build AGS Community"|"Build AGS Benchmark" )
|
||||||
if [[ "${TRAVIS_BRANCH}" == "master" && "${TRAVIS_PULL_REQUEST}" == "false" ]];
|
if [[ "${TRAVIS_BRANCH}" == "master" && "${TRAVIS_PULL_REQUEST}" == "false" ]];
|
||||||
then
|
then
|
||||||
export MAVEN_PHASE="deploy"
|
export MAVEN_PHASE="deploy"
|
||||||
@@ -20,4 +24,22 @@ else
|
|||||||
export BUILD_PROFILE="buildDockerImage"
|
export BUILD_PROFILE="buildDockerImage"
|
||||||
export IMAGE_TAG="latest"
|
export IMAGE_TAG="latest"
|
||||||
fi
|
fi
|
||||||
|
;;
|
||||||
|
"Build AGS Enterprise" )
|
||||||
|
if [[ "${TRAVIS_BRANCH}" == "master" && "${TRAVIS_PULL_REQUEST}" == "false" ]];
|
||||||
|
then
|
||||||
|
export MAVEN_PHASE="deploy"
|
||||||
|
export BUILD_PROFILE="internal"
|
||||||
|
export IMAGE_TAG="latest"
|
||||||
|
elif [[ ${TRAVIS_BRANCH} = release* && "${TRAVIS_PULL_REQUEST}" == "false" ]];
|
||||||
|
then
|
||||||
|
export MAVEN_PHASE="deploy"
|
||||||
|
export BUILD_PROFILE="internal"
|
||||||
|
export IMAGE_TAG="${imageTag}-latest"
|
||||||
|
else
|
||||||
|
export MAVEN_PHASE="verify"
|
||||||
|
export BUILD_PROFILE="buildDockerImage"
|
||||||
|
export IMAGE_TAG="latest"
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
Reference in New Issue
Block a user