Skip to content

Commit

Permalink
Fix RELEASE_TYPE
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-pjob authored and sfc-gh-mraba committed Oct 11, 2024
1 parent 2b034a1 commit 537109c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions scripts/packaging/win/build_installer.bat
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,16 @@ python.exe -c "import platform as p; print(f'{p.system()=}, {p.architecture()=}'
python.exe -m pip install hatch
FOR /F "delims=" %%I IN ('hatch run packaging:win-build-version') DO SET CLI_VERSION=%%I
FOR /F "delims=" %%I IN ('git rev-parse %svnRevision%') DO SET REVISION=%%I
@echo off
FOR /F "delims=" %%I IN ('echo %releaseType%') DO SET RELEASE_TYPE=%%I

echo CLI_VERSION = %CLI_VERSION%
echo REVISION = %REVISION%`
@echo on
echo RELEASE_TYPE = %RELEASE_TYPE%`

set CLI_ZIP=snowflake-cli-%CLI_VERSION%.zip
set CLI_MSI=snowflake-cli-%CLI_VERSION%-x86_64.msi
set STAGE_URL=s3://sfc-eng-jenkins/repository/snowflake-cli/staging/%RELEASE_TYPE%/windows_x86_64/%REVISION%
set RELEASE_URL=s3://sfc-eng-jenkins/repository/snowflake-cli/%RELEASE_TYPE%/windows_x86_64/%REVISION%

echo "[INFO] downloading artifacts"
cmd /c aws s3 cp %STAGE_URL%/%CLI_ZIP% . || goto :error
Expand Down Expand Up @@ -56,7 +58,7 @@ signtool sign /debug /sm /d "Snowflake CLI" /t http://timestamp.digicert.com /a
signtool verify /v /pa %CLI_MSI% || goto :error

echo "[INFO] uploading artifacts"
cmd /c aws s3 cp %CLI_MSI% %STAGE_URL%/%CLI_MSI% || goto :error
cmd /c aws s3 cp %CLI_MSI% %RELEASE_URL%/%CLI_MSI% || goto :error

REM FINISH SCRIPT EXECUTION HERE
GOTO :EOF
Expand Down

0 comments on commit 537109c

Please sign in to comment.