Skip to content

Commit 191db84

Browse files
SNOW-2027569: Move signing process to self service job (#1142)
1 parent 3765cba commit 191db84

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

deploy.bat

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,13 @@ dotnet build Snowflake.Data\Snowflake.Data.csproj -c Release --force -v n /p:Sig
1717

1818
dotnet pack Snowflake.Data\Snowflake.Data.csproj -c Release --force -v n --no-build --output %ROOT_DIR%
1919

20-
aws s3 cp s3://sfc-eng-jenkins/repository/net/sign-artifact.exe .
21-
@For /F Delims^= %%G In ('""certutil.exe" -HashFile "sign-artifact.exe" SHA512|"find.exe" /V ":""')Do @Set "SHA=%%G"
22-
if not %SHA%==94f0b4a78979ded42f7f8c8ce2534691f9f874888bcf7963876f5be881cf6d0ce00e6f8d3e656492249fcfcb890ad656745f2cf68f98e828eb02ded6189a87d4 (
23-
echo "Failed to verify the sha for the signing script"
24-
exit 1
25-
)
26-
sign-artifact.exe sign-artifact -o snowflakedb -r snowflake-connector-net -t v%VERSION% -l 20 -v -u -f Snowflake.Data.%VERSION%.nupkg
20+
REM TODO: SNOW-2027569 - Uncomment once issue with signature files are not valid after artifacts are published. Workaround is to sign after artifacts are published.
21+
REM aws s3 cp s3://sfc-eng-jenkins/repository/net/sign-artifact.exe .
22+
REM @For /F Delims^= %%G In ('""certutil.exe" -HashFile "sign-artifact.exe" SHA512|"find.exe" /V ":""')Do @Set "SHA=%%G"
23+
REM if not %SHA%==94f0b4a78979ded42f7f8c8ce2534691f9f874888bcf7963876f5be881cf6d0ce00e6f8d3e656492249fcfcb890ad656745f2cf68f98e828eb02ded6189a87d4 (
24+
REM echo "Failed to verify the sha for the signing script"
25+
REM exit 1
26+
REM )
27+
REM sign-artifact.exe sign-artifact -o snowflakedb -r snowflake-connector-net -t v%VERSION% -l 20 -v -u -f Snowflake.Data.%VERSION%.nupkg
2728

2829
dotnet nuget push Snowflake.Data.%VERSION%.nupkg -k %API_KEY% -s https://api.nuget.org/v3/index.json

0 commit comments

Comments
 (0)