ACS-550 Add extra debug info in build scripts [skip ci]

This commit is contained in:
Cezar.Leahu
2020-08-27 16:13:36 +03:00
parent 01abc7f3f3
commit cfd9508585
5 changed files with 41 additions and 4 deletions

View File

@@ -1,5 +1,7 @@
#!/usr/bin/env bash
set -ev
echo "=========================== Starting Build Script ==========================="
PS4="\[\e[35m\]+ \[\e[m\]"
set -vex
pushd "$(dirname "${BASH_SOURCE[0]}")/../../"
source "$(dirname "${BASH_SOURCE[0]}")/build_functions.sh"
@@ -15,3 +17,7 @@ fi
mvn -B -V install -DskipTests -Dmaven.javadoc.skip=true "${PROFILES}"
popd
set +vex
echo "=========================== Finishing Build Script =========================="

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env bash
set +vx
function isPullRequestBuild() {
test "${TRAVIS_PULL_REQUEST}" != "false"
@@ -126,3 +127,4 @@ function retieveLatestTag() {
rm -rf "${LOCAL_PATH}"
}
set -vx

View File

@@ -1,5 +1,7 @@
#!/usr/bin/env bash
set -ev
echo "=========================== Starting Init Script ==========================="
PS4="\[\e[35m\]+ \[\e[m\]"
set -vex
pushd "$(dirname "${BASH_SOURCE[0]}")/../../"
# Maven Setup
@@ -17,3 +19,7 @@ sudo service docker restart
# not helpful in this script
# export HOST_IP=$(hostname -I | cut -f1 -d' ')
popd
set +vex
echo "=========================== Finishing Init Script =========================="

View File

@@ -1,5 +1,9 @@
#!/usr/bin/env bash
set -ev
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}"
@@ -15,3 +19,8 @@ mvn -B \
-Dusername="${GIT_USERNAME}" \
-Dpassword="${GIT_PASSWORD}"
popd
set +vex
echo "=========================== Finishing Release Script =========================="

View File

@@ -1,5 +1,8 @@
#!/usr/bin/env bash
set -ev
echo "=========================== Starting Verify Release Tag Script ==========================="
PS4="\[\e[35m\]+ \[\e[m\]"
set -vex
pushd "$(dirname "${BASH_SOURCE[0]}")/../../"
#
# Check that the version to be released does not already have a docker tag.
@@ -10,6 +13,11 @@ printf "POM version: %s\n" "${POM_VERSION}"
IMAGE_TAG="${POM_VERSION%-SNAPSHOT}"
if git rev-parse "${IMAGE_TAG}^{tag}" &>/dev/null ; then
echo "The next tag \"${IMAGE_TAG}\" already exists in the git project"
exit 1
fi
# get the image name from the pom file
ALFRESCO_DOCKER_IMAGE="$(mvn -B -q help:evaluate -f ./packaging/docker-alfresco/pom.xml -Dexpression=image.name -DforceStdout)"
DOCKER_IMAGE_FULL_NAME="${ALFRESCO_DOCKER_IMAGE}:${IMAGE_TAG}"
@@ -36,3 +44,9 @@ if docker_image_exists "${DOCKER_IMAGE_FULL_NAME}" ; then
else
echo "The ${RELEASE_VERSION} tag was not found"
fi
popd
set +vex
echo "=========================== Finishing Verify Release Tag Script =========================="