Skip to content

Commit 6ca1035

Browse files
committed
support archs in manager needed for debug
1 parent 9845659 commit 6ca1035

File tree

1 file changed

+24
-16
lines changed

1 file changed

+24
-16
lines changed

buildkite/scripts/release/manager.sh

Lines changed: 24 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1915,6 +1915,10 @@ function pull(){
19151915
__networks=${2:?$error_message}
19161916
shift 2;
19171917
;;
1918+
--archs )
1919+
__arch=${2:?$error_message}
1920+
shift 2;
1921+
;;
19181922
* )
19191923
echo -e "${RED} !! Unknown option: $1${CLEAR}\n";
19201924
echo "";
@@ -1936,6 +1940,8 @@ function pull(){
19361940
echo " - Target: $__target"
19371941
echo " - Codenames: $__codenames"
19381942
echo " - Networks: $__networks"
1943+
echo " - Architectures: $__arch"
1944+
19391945
if [[ -n ${__from_special_folder+x} ]]; then
19401946
echo " - From special folder: $__from_special_folder"
19411947
fi
@@ -1947,26 +1953,28 @@ function pull(){
19471953
read -r -a __artifacts_arr <<< "$__artifacts"
19481954
read -r -a __codenames_arr <<< "$__codenames"
19491955
read -r -a __networks_arr <<< "$__networks"
1956+
read -r -a __archs_arr <<< "$__arch"
19501957

1951-
for __artifact in "${__artifacts_arr[@]}"; do
1952-
for __codename in "${__codenames_arr[@]}"; do
1953-
for network in "${__networks_arr[@]}"; do
1954-
echo " 📥 Pulling $__artifact for $__codename codename and $network network"
1955-
local __artifact_full_name
1956-
local __source_path
1957-
__artifact_full_name=$(get_artifact_with_suffix $__artifact $network)
1958-
1959-
if [[ -n ${__from_special_folder+x} ]]; then
1960-
__source_path="$(storage_root "$__backend")/$__from_special_folder/${__artifact_full_name}_*"
1961-
else
1962-
__source_path="$(storage_root "$__backend")/$__buildkite_build_id/debians/$__codename/${__artifact_full_name}_*"
1963-
fi
1964-
1965-
storage_download "$__backend" "$__source_path" "$__target"
1958+
for __arch in "${__archs_arr[@]}"; do
1959+
for __artifact in "${__artifacts_arr[@]}"; do
1960+
for __codename in "${__codenames_arr[@]}"; do
1961+
for network in "${__networks_arr[@]}"; do
1962+
echo " 📥 Pulling $__artifact for $__codename codename and $network network"
1963+
local __artifact_full_name
1964+
local __source_path
1965+
__artifact_full_name=$(get_artifact_with_suffix $__artifact $network)
1966+
1967+
if [[ -n ${__from_special_folder+x} ]]; then
1968+
__source_path="$(storage_root "$__backend")/$__from_special_folder/${__artifact_full_name}_*_${__arch}.deb"
1969+
else
1970+
__source_path="$(storage_root "$__backend")/$__buildkite_build_id/debians/$__codename/${__artifact_full_name}_*_${__arch}.deb"
1971+
fi
1972+
1973+
storage_download "$__backend" "$__source_path" "$__target"
1974+
done
19661975
done
19671976
done
19681977
done
1969-
19701978
echo " ✅ Done."
19711979
echo ""
19721980
}

0 commit comments

Comments
 (0)