Skip to content

Commit

Permalink
Fix deployment (#94)
Browse files Browse the repository at this point in the history
* attempt to use shared scripts

* add one custom local script

* del

* review comments
fix github action

* missing env var

* missing more env vars

* nuget config

* dotnet build

* blackduck error

* update

* test res folder

* test dir2

* test dir3

* try to fix deploy

* Update pipeline.yml

* update

* set release branches

* deploy from pr to test

* debug

* typo

* revert debug changes
  • Loading branch information
mjkkirschner authored Feb 27, 2024
1 parent ae9bb2a commit 53ae905
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions cicdscripts/PublishPackage.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 3 additions & 3 deletions pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 53ae905

Please sign in to comment.