This repository has been archived by the owner on Jul 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #598 from NuGet/sb-ri1025
- Loading branch information
Showing
58 changed files
with
665 additions
and
546 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
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,35 @@ | ||
|
||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<ItemGroup> | ||
<SignFilesDependsOn Include="EnumerateThirdPartyBinariesToSign" /> | ||
</ItemGroup> | ||
<Target Name="EnumerateThirdPartyBinariesToSign" AfterTargets="AfterBuild" Condition="'$(SignType)' != 'none'"> | ||
<ItemGroup> | ||
<ThirdPartyBinaries Include="AnglicanGeek.MarkdownMailer.dll" /> | ||
<ThirdPartyBinaries Include="Antlr3.Runtime.dll" /> | ||
<ThirdPartyBinaries Include="Autofac.dll" /> | ||
<ThirdPartyBinaries Include="Autofac.Extensions.DependencyInjection.dll" /> | ||
<ThirdPartyBinaries Include="Dapper.StrongName.dll" /> | ||
<ThirdPartyBinaries Include="Elmah.dll" /> | ||
<ThirdPartyBinaries Include="ICSharpCode.SharpZipLib.dll" /> | ||
<ThirdPartyBinaries Include="MarkdownSharp.dll" /> | ||
<ThirdPartyBinaries Include="Newtonsoft.Json.dll" /> | ||
<ThirdPartyBinaries Include="Newtonsoft.Json.Schema.dll" /> | ||
<ThirdPartyBinaries Include="Owin.dll" /> | ||
<ThirdPartyBinaries Include="Serilog.dll" /> | ||
<ThirdPartyBinaries Include="Serilog.Enrichers.Environment.dll" /> | ||
<ThirdPartyBinaries Include="Serilog.Enrichers.Process.dll" /> | ||
<ThirdPartyBinaries Include="Serilog.Extensions.Logging.dll" /> | ||
<ThirdPartyBinaries Include="Serilog.Sinks.ApplicationInsights.dll" /> | ||
<ThirdPartyBinaries Include="Serilog.Sinks.ColoredConsole.dll" /> | ||
<ThirdPartyBinaries Include="SerilogTraceListener.dll" /> | ||
<ThirdPartyBinaries Include="UAParser.dll" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<FilesToSign Include="$(OutDir)%(ThirdPartyBinaries.Identity)" Condition="Exists('$(OutDir)%(ThirdPartyBinaries.Identity)')"> | ||
<Authenticode>3PartySHA2</Authenticode> | ||
</FilesToSign> | ||
</ItemGroup> | ||
<Message Text="Files to sign:%0A@(FilesToSign, '%0A')" Importance="High" /> | ||
</Target> | ||
</Project> |
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
47 changes: 47 additions & 0 deletions
47
src/NuGet.Services.Validation.Orchestrator/Scripts/RunE2ETests.ps1
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,47 @@ | ||
$AuthCredentials = "{0}:{1}" -f $OctopusParameters['Vsts.UserName'], $OctopusParameters['Vsts.Password'] | ||
$Base64AuthInfo = [Convert]::ToBase64String([Text.Encoding]::ASCII.GetBytes($AuthCredentials)) | ||
$Headers = @{Authorization = ("Basic {0}" -f $Base64AuthInfo)} | ||
|
||
$QueueParameters = @{} | ||
$QueueParameters.Add('ConfigurationName', $OctopusParameters['Vsts.EndToEnd.Jobs.ConfigurationName']) | ||
|
||
$QueueBody = @{ | ||
definition = @{ | ||
id = $OctopusParameters['Vsts.EndToEnd.BuildDefinitionId'] | ||
}; | ||
parameters = (ConvertTo-Json $QueueParameters) | ||
} | ||
|
||
$QueuedBuild = Invoke-RestMethod ` | ||
-Method Post ` | ||
-ContentType 'application/json' ` | ||
-Uri "https://nuget.visualstudio.com/DefaultCollection/NuGetBuild/_apis/build/builds?api-version=2.0" ` | ||
-Headers $Headers ` | ||
-Body (ConvertTo-Json $QueueBody) | ||
|
||
$BuildId = $QueuedBuild.id | ||
Write-Host "Started build $BuildId to run end-to-end tests." | ||
|
||
do { | ||
Start-Sleep -s 20 | ||
|
||
$BuildResponse = Invoke-WebRequest ` | ||
-UseBasicParsing ` | ||
-Method Get ` | ||
-Uri "https://nuget.visualstudio.com/DefaultCollection/NuGetBuild/_apis/build/builds/$($BuildId)?api-version=2.0" ` | ||
-Headers $Headers | ||
|
||
$Build = ConvertFrom-Json $BuildResponse | ||
|
||
Write-Host "Test run state:" $Build.status | ||
Write-Host "******************************************" | ||
} until ($Build.status -eq 'completed') | ||
|
||
Write-Host "Test Run Completion Status:" $Build.result | ||
Write-Host "******************************************" | ||
$BuildUri = $Build.uri | ||
Write-Host "For more details checkout:" "https://nuget.visualstudio.com/NuGetBuild/_build/index?buildId=$BuildUri" | ||
|
||
if ($Build.result -ne 'succeeded') { | ||
throw 'Test run failed' | ||
} |
Oops, something went wrong.