You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by ko...@apache.org on 2022/12/24 00:11:55 UTC

[arrow] branch master updated: GH-15081: [Release] Add support for using custom artifacts directory in dev/release/05-binary-upload.sh (#15082)

This is an automated email from the ASF dual-hosted git repository.

kou pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/master by this push:
     new c88fe74d04 GH-15081: [Release] Add support for using custom artifacts directory in dev/release/05-binary-upload.sh (#15082)
c88fe74d04 is described below

commit c88fe74d04bad57e03fc791b1f03ee8c8f039fd3
Author: Sutou Kouhei <ko...@clear-code.com>
AuthorDate: Sat Dec 24 09:11:49 2022 +0900

    GH-15081: [Release] Add support for using custom artifacts directory in dev/release/05-binary-upload.sh (#15082)
    
    It's for reusing the script from apache/arrow-adbc.
    * Closes: #15081
    
    Authored-by: Sutou Kouhei <ko...@clear-code.com>
    Signed-off-by: Sutou Kouhei <ko...@clear-code.com>
---
 dev/release/05-binary-upload.sh | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/dev/release/05-binary-upload.sh b/dev/release/05-binary-upload.sh
index c8ac64b80c..5404e0261a 100755
--- a/dev/release/05-binary-upload.sh
+++ b/dev/release/05-binary-upload.sh
@@ -40,15 +40,15 @@ crossbow_package_dir="${SOURCE_DIR}/../../packages"
 
 : ${CROSSBOW_JOB_NUMBER:="0"}
 : ${CROSSBOW_JOB_ID:="${crossbow_job_prefix}-${CROSSBOW_JOB_NUMBER}"}
-artifact_dir="${crossbow_package_dir}/${CROSSBOW_JOB_ID}"
+: ${ARROW_ARTIFACTS_DIR:="${crossbow_package_dir}/${CROSSBOW_JOB_ID}"}
 
-if [ ! -e "$artifact_dir" ]; then
-  echo "$artifact_dir does not exist"
+if [ ! -e "${ARROW_ARTIFACTS_DIR}" ]; then
+  echo "${ARROW_ARTIFACTS_DIR} does not exist"
   exit 1
 fi
 
-if [ ! -d "$artifact_dir" ]; then
-  echo "$artifact_dir is not a directory"
+if [ ! -d "${ARROW_ARTIFACTS_DIR}" ]; then
+  echo "${ARROW_ARTIFACTS_DIR} is not a directory"
   exit 1
 fi
 
@@ -118,7 +118,7 @@ tmp_dir=binary/tmp
 mkdir -p "${tmp_dir}"
 source_artifacts_dir="${tmp_dir}/artifacts"
 rm -rf "${source_artifacts_dir}"
-cp -a "${artifact_dir}" "${source_artifacts_dir}"
+cp -a "${ARROW_ARTIFACTS_DIR}" "${source_artifacts_dir}"
 
 docker_run \
   ./runner.sh \