-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
46 lines (40 loc) 路 1.31 KB
/
Copy pathazure-pipelines.yml
File metadata and controls
46 lines (40 loc) 路 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
trigger:
branches:
include:
- main
- master
- develop
pool:
name: MyLocalAgent
variables:
sonarProjectKey: "Desafio-Tecnico2-escribo"
sonarProjectName: "Desafio-Tecnico2-escribo"
sonarHostUrl: "http://localhost:9000"
GIT_BASH: "C:\\Program Files\\Git\\bin\\bash.exe"
resources:
repositories:
- repository: sonarTemplates
type: github
name: fernandoStadler/sonar-templates
ref: refs/heads/main
endpoint: github-connection
stages:
- stage: SonarQubeScan
displayName: "馃攳 SonarQube - An谩lise de Qualidade"
jobs:
- job: Scan
displayName: "Scan de C贸digo"
steps:
- checkout: self
fetchDepth: 0
- powershell: |
$env:Path = "C:\Program Files\Git\bin;" + $env:Path
[System.Environment]::SetEnvironmentVariable("Path", $env:Path, "Process")
Write-Host "Git Bash configurado: $(& 'C:\Program Files\Git\bin\bash.exe' --version)"
displayName: "鈿欙笍 Configurar Git Bash"
- template: sonar-scan-template.yml@sonarTemplates
parameters:
sonarProjectKey: $(sonarProjectKey)
sonarProjectName: $(sonarProjectName)
sonarHostUrl: $(sonarHostUrl)
sonarTokenSecret: "SONAR_TOKEN"