mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Removed trigger of downstream project on feature branch to save agents
(cherry picked from commit f6c87dddbe
)
# Conflicts:
# scripts/travis/maven_release.sh
28 lines
818 B
Bash
Executable File
28 lines
818 B
Bash
Executable File
#!/usr/bin/env bash
|
|
echo "=========================== Starting Release Script ==========================="
|
|
PS4="\[\e[35m\]+ \[\e[m\]"
|
|
set -vex
|
|
pushd "$(dirname "${BASH_SOURCE[0]}")/../../"
|
|
|
|
|
|
# Use full history for release
|
|
git checkout -B "${TRAVIS_BRANCH}"
|
|
# Add email to link commits to user
|
|
git config user.email "${GIT_EMAIL}"
|
|
|
|
# Run the release plugin - with "[skip ci]" in the release commit message
|
|
mvn -B \
|
|
-Pall-tas-tests \
|
|
-Pags \
|
|
"-Darguments=-Prelease,all-tas-tests -Pags -DskipTests -Dbuild-number=${TRAVIS_BUILD_NUMBER}" \
|
|
release:clean release:prepare release:perform \
|
|
-DscmCommentPrefix="[maven-release-plugin][skip ci] " \
|
|
-Dusername="${GIT_USERNAME}" \
|
|
-Dpassword="${GIT_PASSWORD}"
|
|
|
|
|
|
popd
|
|
set +vex
|
|
echo "=========================== Finishing Release Script =========================="
|
|
|