Skip to content

Commit 037ce4e

Browse files
Publish Noble Sdks for python and dotnet (#2650)
* Activate Yarn Versions in image using corepack * Publish noble sdks for python, dotnet
1 parent ccd7b21 commit 037ce4e

File tree

1 file changed

+30
-21
lines changed

1 file changed

+30
-21
lines changed

vsts/scripts/publishSdksFromSourceToDestStorageAccount.sh

Lines changed: 30 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -62,53 +62,62 @@ function copyBlob() {
6262

6363
function copyPlatformBlobsToProd() {
6464
local platformName="$1"
65-
copyPlatformBlobsToProdForDebianFlavor "$platformName" "stretch"
66-
copyPlatformBlobsToProdForDebianFlavor "$platformName" "buster"
67-
copyPlatformBlobsToProdForDebianFlavor "$platformName" "bullseye"
68-
copyPlatformBlobsToProdForDebianFlavor "$platformName" "bookworm"
69-
copyPlatformBlobsToProdForDebianFlavor "$platformName" "focal-scm"
65+
copyPlatformBlobsToProdForOsFlavor "$platformName" "stretch"
66+
copyPlatformBlobsToProdForOsFlavor "$platformName" "buster"
67+
copyPlatformBlobsToProdForOsFlavor "$platformName" "bullseye"
68+
copyPlatformBlobsToProdForOsFlavor "$platformName" "bookworm"
69+
copyPlatformBlobsToProdForOsFlavor "$platformName" "focal-scm"
70+
copyPlatformBlobsToProdForOsFlavor "$platformName" "noble"
7071
}
7172

72-
function copyPlatformBlobsToProdForDebianFlavor() {
73+
function copyPlatformBlobsToProdForOsFlavor() {
7374
local platformName="$1"
74-
local debianFlavor="$2"
75-
local versionsFile="$REPO_DIR/platforms/$platformName/versions/$debianFlavor/versionsToBuild.txt"
75+
local osFlavor="$2"
76+
local versionsFile="$REPO_DIR/platforms/$platformName/versions/$osFlavor/versionsToBuild.txt"
7677
local defaultFile=""
7778
local binaryPrefix=""
7879

7980
if [ "$platformName" == "php-composer" ]; then
80-
versionsFile="$REPO_DIR/platforms/php/composer/versions/$debianFlavor/versionsToBuild.txt"
81+
versionsFile="$REPO_DIR/platforms/php/composer/versions/$osFlavor/versionsToBuild.txt"
8182
elif [ "$platformName" == "maven" ]; then
82-
versionsFile="$REPO_DIR/platforms/java/maven/versions/$debianFlavor/versionsToBuild.txt"
83+
versionsFile="$REPO_DIR/platforms/java/maven/versions/$osFlavor/versionsToBuild.txt"
8384
fi
8485

85-
if [ "$debianFlavor" == "stretch" ]; then
86+
if [ "$osFlavor" == "stretch" ]; then
8687
defaultFile="defaultVersion.txt"
8788
copyBlob "$platformName" "$defaultFile"
8889
binaryPrefix="$platformName"
8990
else
90-
binaryPrefix="$platformName-$debianFlavor"
91+
binaryPrefix="$platformName-$osFlavor"
9192
fi
9293

93-
# Function to copy platform blobs to production for a specific Debian flavor
94+
# Function to copy platform blobs to production for a specific Os flavor
9495
# Dotnet, nodejs, php and python platforms are currently supporting bookworm.
9596
# Allowed combinations:
96-
# - platformName=dotnet and debianFlavor=bookworm
97-
# - platformName=nodejs and debianFlavor=bookworm
98-
# - platformName=php and debianFlavor=bookworm
99-
# - platformName=python and debianFlavor=bookworm
97+
# - platformName=dotnet and osFlavor=bookworm
98+
# - platformName=nodejs and osFlavor=bookworm
99+
# - platformName=php and osFlavor=bookworm
100+
# - platformName=python and osFlavor=bookworm
101+
# - platformName=dotnet and osFlavor=noble
102+
# - platformName=python and osFlavor=noble
100103
# Not allowed combinations:
101-
# - Any platformName other than dotnet, node js, python and php with debianFlavor=bookworm
102-
if [ "$debianFlavor" == "bookworm" ] && \
104+
# - Any platformName other than dotnet, node js, python and php with osFlavor=bookworm
105+
# - Any platformName other than dotnet and python with osFlavor=noble
106+
if [ "$osFlavor" == "bookworm" ] && \
103107
[ "$platformName" != "dotnet" ] && \
104108
[ "$platformName" != "nodejs" ] && \
105109
[ "$platformName" != "php" ] && \
106110
[ "$platformName" != "php-composer" ] && \
107111
[ "$platformName" != "python" ]; then
108112
# Do not copy blobs
109-
echo "Copying blobs for platformName=$platformName and debianFlavor=$debianFlavor is not supported yet."
113+
echo "Copying blobs for platformName=$platformName and osFlavor=$osFlavor is not supported yet."
114+
elif [ "$osFlavor" == "noble" ] && \
115+
[ "$platformName" != "dotnet" ] && \
116+
[ "$platformName" != "python" ]; then
117+
# Do not copy blobs
118+
echo "Copying blobs for platformName=$platformName and osFlavor=$osFlavor is not supported yet."
110119
else
111-
defaultFile="defaultVersion.$debianFlavor.txt"
120+
defaultFile="defaultVersion.$osFlavor.txt"
112121
copyBlob "$platformName" "$defaultFile"
113122

114123
# Here '3' is a file descriptor which is specifically used to read the versions file.

0 commit comments

Comments
 (0)