From dd944771545f3978230f2aaf01d1e8331307435f Mon Sep 17 00:00:00 2001 From: Shreyas Rao Date: Sat, 19 Sep 2020 19:27:05 +0530 Subject: [PATCH] Update CI pipeline Signed-off-by: Shreyas Rao --- .ci/update_version | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.ci/update_version b/.ci/update_version index fb2ae39..c97f2a7 100755 --- a/.ci/update_version +++ b/.ci/update_version @@ -7,10 +7,6 @@ set -e # For the build step concourse will set the following environment variables: # SOURCE_PATH - path to component repository root directory. -echo $SOURCE_PATH -pwd -ls -al - if [[ -z "${SOURCE_PATH}" ]]; then export SOURCE_PATH="$(readlink -f "$(dirname ${0})/..")" else @@ -27,7 +23,7 @@ DOCKERFILE_TEMPLATE="${SOURCE_PATH}/Dockerfile.template" VERSION=`/cc/utils/cli.py githubutil greatest_release_version --github-repository-url https://github.com/etcd-io/etcd --anonymous` export VERSION="v$VERSION" -echo "NEW VERSION: $VERSION" +echo "FETCHED ETCD VERSION: $VERSION" cat << EOF > ${VERSION_FILE} $VERSION @@ -46,5 +42,7 @@ git --no-pager diff echo echo "Publishing version change" +set +e git commit -am "Updated etcd image version to $VERSION" -echo $(git log -1) +set -e +git --no-pager log -1