Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add source common.sh in release-manager.sh #2841

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .buildkite/scripts/release-manager.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@
# It uses env variables to help to run this script with a simpler jenkins
# pipeline call.
#
source .buildkite/scripts/common.sh

set -uexo pipefail


readonly TYPE=${TYPE:-snapshot}
readonly OUTPUT_FILE=${OUTPUT_FILE:-release-manager-report.out}

Expand All @@ -27,7 +30,7 @@ chmod -R a+w "$FOLDER"

# ensure the latest image has been pulled
IMAGE=docker.elastic.co/infra/release-manager:latest
(retry 3 docker pull --quiet "${IMAGE}") || echo "Error pulling ${IMAGE} Docker image, we continue"
(retry 3 echo docker pull --quiet "${IMAGE}") || echo "Error pulling ${IMAGE} Docker image, we continue"
docker images --filter=reference=${IMAGE}

# Generate checksum files and upload to GCS
Expand All @@ -38,7 +41,7 @@ run_release_manager() {
if [ "$BUILDKITE_PULL_REQUEST" != "false" ]; then
dry_run="--dry-run"
fi
docker run --rm \
echo docker run --rm \
--name release-manager \
-e VAULT_ADDR \
-e VAULT_ROLE_ID \
Expand Down
Loading