Skip to content

Commit cc36f86

Browse files
committed
add branch to sonar config
1 parent 75ed7dc commit cc36f86

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Utility.CommandLine.Arguments.sln

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{B16DDE41
2727
EndProject
2828
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "build", "build", "{52A632BE-5095-4EA5-B024-59427FA4262B}"
2929
ProjectSection(SolutionItems) = preProject
30-
build\pack.sh = build\pack.sh
30+
build\build.sh = build\build.sh
31+
build\ci.sh = build\ci.sh
32+
build\deploy.sh = build\deploy.sh
33+
build\test.sh = build\test.sh
3134
EndProjectSection
3235
EndProject
3336
Global

build/ci.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
#!/bin/bash
22
set -e
33
__dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
4+
__branch=$(git branch --no-color | grep -E '^\*' | awk '{print $2}')
45

5-
dotnet-sonarscanner begin /key:"jpdillingham_Utility.CommandLine.Arguments" /o:jpdillingham-github /d:sonar.host.url="https://sonarcloud.io" /d:sonar.exclusions="**/*examples*/**" /d:sonar.login="${TOKEN_SONARCLOUD}" /d:sonar.cs.opencover.reportsPaths="tests/opencover.xml"
6+
dotnet-sonarscanner begin /key:"jpdillingham_Utility.CommandLine.Arguments" /o:jpdillingham-github /d:sonar.host.url="https://sonarcloud.io" /d:sonar.exclusions="**/*examples*/**" /d:sonar.branch.name=${__branch} /d:sonar.login="${TOKEN_SONARCLOUD}" /d:sonar.cs.opencover.reportsPaths="tests/opencover.xml"
67

78
. "${__dir}/build.sh"
89
. "${__dir}/test.sh"

0 commit comments

Comments
 (0)