From 1d4f08b7ed8947797264c223bae94c1dfaa465e9 Mon Sep 17 00:00:00 2001 From: Victor Seva Date: Thu, 16 Jun 2022 14:45:27 +0200 Subject: [PATCH] TT#15305 development.sh: support trunk-weekly, take two Change-Id: I83e635dc5916833d0699fd0be5a8a742ef7b40c8 --- templates/scripts/includes/deployment.sh | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/templates/scripts/includes/deployment.sh b/templates/scripts/includes/deployment.sh index 8106161..5403f8c 100755 --- a/templates/scripts/includes/deployment.sh +++ b/templates/scripts/includes/deployment.sh @@ -752,7 +752,17 @@ lvm_setup() { retrieve_deployment_scripts_fake_uname() { local target_path="$1" - local repos_base_path="${SIPWISE_URL}/autobuild/dists/release-trunk-${DEBIAN_RELEASE}/main/binary-amd64/" + case "${SP_VERSION}" in + trunk) + local repos_base_path="${SIPWISE_URL}/autobuild/dists/release-trunk-${DEBIAN_RELEASE}/main/binary-amd64/" + local deployment_path="${SIPWISE_URL}/autobuild/pool/main/n/ngcp-deployment-iso" + ;; + trunk-weekly) + local repos_base_path="${SIPWISE_URL}/autobuild/release/release-${SP_VERSION}/dists/release-${SP_VERSION}/main/binary-amd64/" + local deployment_path="${SIPWISE_URL}/autobuild/release/release-${SP_VERSION}/pool/main/n/ngcp-deployment-iso/" + ;; + *) die "Error: unknown TRUNK_VERSION ${SP_VERSION}" ;; + esac wget --timeout=30 -O Packages.gz "${repos_base_path}Packages.gz" # sed: display paragraphs matching the "Package: ..." string, then grab string "^Version: " and display the actual version via awk @@ -764,7 +774,7 @@ retrieve_deployment_scripts_fake_uname() { # retrieve Debian package local deb_package="ngcp-deployment-scripts_${version}_amd64.deb" - local deployment_scripts_package="${SIPWISE_URL}/autobuild/pool/main/n/ngcp-deployment-iso/${deb_package}" + local deployment_scripts_package="${deployment_path}/${deb_package}" wget --timeout=30 -O "/root/${deb_package}" "${deployment_scripts_package}" # extract Debian package @@ -811,7 +821,7 @@ get_installer_path() { INSTALLER_PATH="${SIPWISE_URL}/autobuild/pool/main/n/ngcp-installer/" ;; trunk-weekly) - local repos_base_path="${SIPWISE_URL}/autobuild/release/release-${SP_VERSION}/main/binary-amd64/" + local repos_base_path="${SIPWISE_URL}/autobuild/release/release-${SP_VERSION}/dists/release-${SP_VERSION}/main/binary-amd64/" INSTALLER_PATH="${SIPWISE_URL}/autobuild/release/release-${SP_VERSION}/pool/main/n/ngcp-installer/" ;; *) die "Error: unknown TRUNK_VERSION ${SP_VERSION}" ;;