-
Notifications
You must be signed in to change notification settings - Fork 1
/
azure-pipelines.yml
51 lines (40 loc) · 1.17 KB
/
azure-pipelines.yml
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
47
48
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
trigger:
- develop
pool:
name: Default
demands:
- agent.name -equals SonarLocalPC
stages:
- stage: Preparation
jobs:
- job: PreparationJob
steps:
- script: echo Preparation!
- stage: Build
jobs:
- job: JacocoJob
steps:
- checkout: self
- script: |
echo "Cambiando a la rama develop"
git fetch origin fix_Pruebas
git checkout fix_Pruebas
git pull origin fix_Pruebas
displayName: 'Checkout develop branch'
- task: Maven@4
inputs:
mavenPomFile: 'sgart.backend/pom.xml'
goals: 'clean test jacoco:report'
options: '-Djacoco.skip=false'
- script: echo Jacoco report generated!
- stage: SonarQube
jobs:
- job: SonarQubeJob
steps:
- checkout: none
- script: sonar-scanner -Dsonar.token=$(SQ_TOKEN) -Dproject.settings=sgart.backend/sonar-project.properties -Dsonar.coverage.jacoco.xmlReportPaths=sgart.backend/target/site/jacoco/jacoco.xml
- script: echo Sonarqube ok!