File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -22,21 +22,31 @@ phases:
2222 build :
2323 commands :
2424 - VERSION=$(node -e "console.log(require('./packages/${TARGET_EXTENSION}/package.json').version);")
25- # get extension name
25+ # get extension name, also an old version for beta testing
2626 - |
2727 if [ "${TARGET_EXTENSION}" = "amazonq" ]; then
2828 extension_name="amazonwebservices.amazon-q-vscode"
29+ beta_version="@1.43.0"
2930 elif [ "${TARGET_EXTENSION}" = "toolkit" ]; then
3031 extension_name="amazonwebservices.aws-toolkit-vscode"
32+ beta_version="@3.42.0"
3133 else
3234 echo checkmarketplace: "Unknown TARGET_EXTENSION: ${TARGET_EXTENSION}"
3335 exit 1
3436 fi
37+ # If in beta, install specific extension versions
38+ - |
39+ if [ "$STAGE" != "prod" ]; then
40+ VERSION=${beta_version#@}
41+ echo "checkmarketplace: Non-production stage detected. Installing beta version '${VERSION}'."
42+ else
43+ beta_version=""
44+ fi
3545 # keep reinstalling the extension until the desired version is updated. Otherwise fail on codebuild timeout (1 hour).
3646 - |
3747 while true; do
3848 code --uninstall-extension "${extension_name}" --no-sandbox --user-data-dir /tmp/vscode
39- code --install-extension ${extension_name} --no-sandbox --user-data-dir /tmp/vscode
49+ code --install-extension " ${extension_name}${beta_version}" --no-sandbox --user-data-dir /tmp/vscode
4050 cur_version=$(code --list-extensions --show-versions --no-sandbox --user-data-dir /tmp/vscode | grep ${extension_name} | cut -d'@' -f2)
4151 if [ "${cur_version}" = "${VERSION}" ]; then
4252 echo "checkmarketplace: Extension ${extension_name} is updated to version '${cur_version}.'"
You can’t perform that action at this time.
0 commit comments