From b2a4ba79551875bb45ba0b691bb84da67a6f9a05 Mon Sep 17 00:00:00 2001 From: Siarhei Harbuz Date: Thu, 27 Jul 2023 11:44:20 +0300 Subject: [PATCH 1/2] add path to release-manager script --- .buildkite/scripts/dra_release.sh | 4 +--- .buildkite/scripts/release-manager.sh | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.buildkite/scripts/dra_release.sh b/.buildkite/scripts/dra_release.sh index 04caf7d7c..769470467 100755 --- a/.buildkite/scripts/dra_release.sh +++ b/.buildkite/scripts/dra_release.sh @@ -41,9 +41,7 @@ mkdir -p ${BASE_DIR}/reports ./dev-tools/dependencies-report --csv ${BASE_DIR}/reports/dependencies-${VERSION}.csv cd ${BASE_DIR}/reports && shasum -a 512 dependencies-${VERSION}.csv > dependencies-${VERSION}.csv.sha512 -cd ${WORKSPACE} +cd $(dirname ${WORKSPACE}) export FOLDER="${FOLDER_PATH}" export OUTPUT_FILE="${DRA_OUTPUT}" -echo "$(pwd)" -ls -la ./.buildkite/scripts/release-manager.sh #TODO use "echo" for rollback diff --git a/.buildkite/scripts/release-manager.sh b/.buildkite/scripts/release-manager.sh index 15e586303..b7d3786cc 100755 --- a/.buildkite/scripts/release-manager.sh +++ b/.buildkite/scripts/release-manager.sh @@ -21,8 +21,8 @@ readonly TYPE=${TYPE:-snapshot} readonly OUTPUT_FILE=${OUTPUT_FILE:-release-manager-report.out} # set required permissions on artifacts and directory -chmod -R a+r "$FOLDER"/* -chmod -R a+w "$FOLDER" +chmod -R a+r "${WORKSPACE}"/"$FOLDER"/* +chmod -R a+w "${WORKSPACE}"/"$FOLDER" # ensure the latest image has been pulled IMAGE=docker.elastic.co/infra/release-manager:latest From 5ac5952760d26632929def9d9fd7858e6d84c3a5 Mon Sep 17 00:00:00 2001 From: Siarhei Harbuz Date: Thu, 27 Jul 2023 11:49:01 +0300 Subject: [PATCH 2/2] add path to release-manager script --- .buildkite/scripts/release-manager.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.buildkite/scripts/release-manager.sh b/.buildkite/scripts/release-manager.sh index b7d3786cc..4c4a89194 100755 --- a/.buildkite/scripts/release-manager.sh +++ b/.buildkite/scripts/release-manager.sh @@ -21,8 +21,9 @@ readonly TYPE=${TYPE:-snapshot} readonly OUTPUT_FILE=${OUTPUT_FILE:-release-manager-report.out} # set required permissions on artifacts and directory -chmod -R a+r "${WORKSPACE}"/"$FOLDER"/* -chmod -R a+w "${WORKSPACE}"/"$FOLDER" +cd ${WORKSPACE} +chmod -R a+r "$FOLDER"/* +chmod -R a+w "$FOLDER" # ensure the latest image has been pulled IMAGE=docker.elastic.co/infra/release-manager:latest