Skip to content

Commit ac35058

Browse files
authored
Update 70checkmarketplace.yml
1 parent 81a1187 commit ac35058

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

buildspec/release/70checkmarketplace.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,27 +26,27 @@ phases:
2626
- |
2727
if [ "${TARGET_EXTENSION}" = "amazonq" ]; then
2828
extension_name="amazonwebservices.amazon-q-vscode"
29+
beta_version = "1.44.0"
2930
elif [ "${TARGET_EXTENSION}" = "toolkit" ]; then
3031
extension_name="amazonwebservices.aws-toolkit-vscode"
32+
beta_version = "3.43.0"
3133
else
3234
echo checkmarketplace: "Unknown TARGET_EXTENSION: ${TARGET_EXTENSION}"
3335
exit 1
3436
fi
3537
- |
3638
if [ "$STAGE" != "prod" ]; then
3739
echo "checkmarketplace: Non-production stage detected. Installing beta version 1.44.0."
38-
VERSION="1.44.0"
3940
code_command="code-insiders"
40-
version_param="@${VERSION}"
4141
else
4242
code_command="code"
43-
version_param=""
43+
beta_version=""
4444
fi
4545
# keep reinstalling the extension until the desired version is updated. Otherwise fail on codebuild timeout (1 hour).
4646
- |
4747
while true; do
4848
$code_command --uninstall-extension "${extension_name}" --no-sandbox --user-data-dir /tmp/vscode
49-
$code_command --install-extension ${extension_name}${version_param} --no-sandbox --user-data-dir /tmp/vscode
49+
$code_command --install-extension ${extension_name}${beta_version} --no-sandbox --user-data-dir /tmp/vscode
5050
cur_version=$(code --list-extensions --show-versions --no-sandbox --user-data-dir /tmp/vscode | grep ${extension_name} | cut -d'@' -f2)
5151
if [ "${cur_version}" = "${VERSION}" ]; then
5252
echo "checkmarketplace: Extension ${extension_name} is updated to version '${cur_version}.'"

0 commit comments

Comments
 (0)