diff --git a/cicdscripts/PublishPackage.ps1 b/cicdscripts/PublishPackage.ps1 index 33fc6ff..62093f8 100644 --- a/cicdscripts/PublishPackage.ps1 +++ b/cicdscripts/PublishPackage.ps1 @@ -25,11 +25,12 @@ $reBranch = [regex]$regex if ($env:BRANCH_NAME -match $reBranch) { try { - #deploy already built package. - $assemblyPath = "\bin\release" + $assemblyPath = "$env:WORKSPACE\bin\release" $nupkgFile = Get-ChildItem $assemblyPath\*.nupkg -Depth 1 - dotnet nuget push $nupkgFile --api-key $env:API_KEY --source $env:NUGET_PUBLISH_SOURCE + Write-Host $env:NUGET_PUBLISH_SOURCE + Write-Host $nupkgFile + dotnet nuget push $nupkgFile --api-key $env:APIKEY --source $env:NUGET_PUBLISH_SOURCE if($LASTEXITCODE -ne 0) { throw "The package-generation process failed" diff --git a/pipeline.yml b/pipeline.yml index 6316a90..6ea6414 100644 --- a/pipeline.yml +++ b/pipeline.yml @@ -14,9 +14,9 @@ env: - SONARSCANTOOL : "SonarScannerMsbuild\\dotnet-framework-sonarscanner\\tools\\SonarScanner.MSBuild.exe" - NUGET_SOURCES : "nuget.org" - NUGET_CONFIG : "Config\\nuget.config" - + - RELEASE_BRANCHES: "master" -check_changelog_updated_on_pr: true +check_changelog_updated_on_pr: false pipeline_os: "Windows" force_slack_notification : true language: csharp @@ -51,7 +51,7 @@ ci_test: scripts: - dotnet test src/GregClientTests/GregClientTests.csproj --logger:"junit;LogFilePath=testresults\\testresults.xml" - test_report_dir: GregClientTests\\testresults + test_report_dir: src\\GregClientTests\\testresults test_report_pattern: format: "junit" pattern: "*.xml"