Update pipelines config (#1826)
This commit is contained in:
+8
-17
@@ -27,26 +27,17 @@ steps:
|
|||||||
inputs:
|
inputs:
|
||||||
testRunner: 'NUnit'
|
testRunner: 'NUnit'
|
||||||
testResultsFiles: '**/Working/*.xml'
|
testResultsFiles: '**/Working/*.xml'
|
||||||
displayName: 'Publish NUnit test results'
|
displayName: 'Publish NUnit results'
|
||||||
|
|
||||||
- task: PublishTestResults@2
|
- task: PublishTestResults@2
|
||||||
inputs:
|
inputs:
|
||||||
testRunner: 'VSTest'
|
testRunner: 'VSTest'
|
||||||
testResultsFiles: '**/Working/*.trx'
|
testResultsFiles: '**/Working/*.trx'
|
||||||
displayName: 'Publish XUnit test results'
|
displayName: 'Publish dotnet test results'
|
||||||
|
|
||||||
- powershell: |
|
- task: PublishBuildArtifacts@1
|
||||||
$branch = [string]$Env:BRANCH_NAME
|
inputs:
|
||||||
write-host "Branch $branch" -fore Green
|
pathtoPublish: .\Working
|
||||||
if ($branch -eq "master" -and (Test-Path -path ".\Working\NuGet"))
|
artifactName: artifacts
|
||||||
{
|
parallel: true
|
||||||
$apiKey = $Env:MYGET_KEY
|
parallelCount: 8
|
||||||
$mainPkg = (get-childitem .\Working\NuGet | Where {$_.Extension -eq ".nupkg" -and !$_.Name.Contains(".symbols.") } | select -first 1).FullName
|
|
||||||
write-host
|
|
||||||
write-host "Pushing package $mainPkg to myget" -fore Green
|
|
||||||
.\Build\Temp\nuget.exe push $mainPkg $apiKey -Source https://www.myget.org/F/json-net/api/v2/package
|
|
||||||
}
|
|
||||||
env:
|
|
||||||
MYGET_KEY: $(newtonsoft.mygetKey)
|
|
||||||
BRANCH_NAME: $(Build.SourceBranchName)
|
|
||||||
displayName: 'Publish NuGet package'
|
|
||||||
Reference in New Issue
Block a user