|
|
@ -1,6 +1,6 @@
|
|
|
|
kind: pipeline
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
type: docker
|
|
|
|
name: SQLuedoCICD
|
|
|
|
name: API_SQLuedo
|
|
|
|
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
event:
|
|
|
@ -18,6 +18,7 @@ steps:
|
|
|
|
image: mcr.microsoft.com/dotnet/sdk:8.0
|
|
|
|
image: mcr.microsoft.com/dotnet/sdk:8.0
|
|
|
|
commands:
|
|
|
|
commands:
|
|
|
|
- cd API_SQLuedo/
|
|
|
|
- cd API_SQLuedo/
|
|
|
|
|
|
|
|
- dotnet restore API_SQLuedo.sln
|
|
|
|
- dotnet test API_SQLuedo.sln -c Release --no-build --no-restore
|
|
|
|
- dotnet test API_SQLuedo.sln -c Release --no-build --no-restore
|
|
|
|
depends_on:
|
|
|
|
depends_on:
|
|
|
|
- [ build ]
|
|
|
|
- [ build ]
|
|
|
@ -32,7 +33,7 @@ steps:
|
|
|
|
project_key: API_SQLuedo
|
|
|
|
project_key: API_SQLuedo
|
|
|
|
coverage_exclusions: "Test*/**"
|
|
|
|
coverage_exclusions: "Test*/**"
|
|
|
|
commands:
|
|
|
|
commands:
|
|
|
|
- cd Sources/
|
|
|
|
- cd API_SQLuedo/
|
|
|
|
- dotnet restore API_SQLuedo.sln
|
|
|
|
- dotnet restore API_SQLuedo.sln
|
|
|
|
- dotnet sonarscanner begin /k:$${project_key} /d:sonar.host.url=$${sonar_host} /d:sonar.coverageReportPaths="coveragereport/SonarQube.xml" /d:sonar.coverage.exclusions=$${coverage_exclusions} /d:sonar.login=$${sonar_token}
|
|
|
|
- dotnet sonarscanner begin /k:$${project_key} /d:sonar.host.url=$${sonar_host} /d:sonar.coverageReportPaths="coveragereport/SonarQube.xml" /d:sonar.coverage.exclusions=$${coverage_exclusions} /d:sonar.login=$${sonar_token}
|
|
|
|
- dotnet build API_SQLuedo.sln -c Release --no-restore
|
|
|
|
- dotnet build API_SQLuedo.sln -c Release --no-restore
|
|
|
|