-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add strong name signing to webjobs extensions repo (#482)
* add strong name signing to webjobs extensions repo * adding more public keys * only sign builds on PR merge * revert side-effect change of timer sample update
- Loading branch information
Showing
19 changed files
with
90 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
$isPr = Test-Path env:APPVEYOR_PULL_REQUEST_NUMBER | ||
$directoryPath = Split-Path $MyInvocation.MyCommand.Path -Parent | ||
|
||
if (-not $isPr -and $env:SkipAssemblySigning -ne "true") { | ||
$timeout = new-timespan -Minutes 5 | ||
$sw = [diagnostics.stopwatch]::StartNew(); | ||
$polling = $true; | ||
$ctx = New-AzureStorageContext $env:FILES_ACCOUNT_NAME $env:FILES_ACCOUNT_KEY | ||
$blob = $null; | ||
while ($sw.elapsed -lt $timeout -and $polling) { | ||
$blob = Get-AzureStorageBlob "$env:APPVEYOR_BUILD_VERSION.zip" "azure-webjobs-extensions-signed" -Context $ctx -ErrorAction Ignore | ||
if (-not $blob) { | ||
"${sw.elapsed} elapsed, polling..." | ||
} | ||
else { | ||
"Jenkins artifacts found" | ||
$polling = $false; | ||
} | ||
Start-Sleep -Seconds 5 | ||
} | ||
|
||
if ($polling) { | ||
"No jenkins artifacts found, investigate job at https://funkins-master.redmond.corp.microsoft.com/job/Build_signing/" | ||
exit(1); | ||
} | ||
|
||
Remove-Item "$directoryPath/../buildoutput" -Recurse -Force | ||
|
||
Mkdir "$directoryPath/../buildoutput" | ||
|
||
Get-AzureStorageBlobContent "$env:APPVEYOR_BUILD_VERSION.zip" "azure-webjobs-extensions-signed" -Destination "$directoryPath/../buildoutput/signed.zip" -Context $ctx | ||
|
||
Expand-Archive "$directoryPath/../buildoutput/signed.zip" "$directoryPath/../buildoutput/signed" | ||
|
||
Get-ChildItem "$directoryPath/../buildoutput/signed" | % { | ||
Push-AppveyorArtifact $_.FullName | ||
} | ||
if (-not $?) { exit 1 } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
$isPr = Test-Path env:APPVEYOR_PULL_REQUEST_NUMBER | ||
$directoryPath = Split-Path $MyInvocation.MyCommand.Path -Parent | ||
|
||
if (-not $isPr) { | ||
Compress-Archive $directoryPath\..\buildoutput\* $directoryPath\..\buildoutput\tosign.zip | ||
|
||
if ($env:SkipAssemblySigning -eq "true") { | ||
"Assembly signing disabled. Skipping signing process." | ||
exit 0; | ||
} | ||
|
||
$ctx = New-AzureStorageContext $env:FILES_ACCOUNT_NAME $env:FILES_ACCOUNT_KEY | ||
Set-AzureStorageBlobContent "$directoryPath/../buildoutput/tosign.zip" "azure-webjobs-extensions" -Blob "$env:APPVEYOR_BUILD_VERSION.zip" -Context $ctx | ||
|
||
$queue = Get-AzureStorageQueue "signing-jobs" -Context $ctx | ||
|
||
$messageBody = "SignNupkgs;azure-webjobs-extensions;$env:APPVEYOR_BUILD_VERSION.zip" | ||
$queue.CloudQueue.AddMessage($messageBody) | ||
} |