-
Notifications
You must be signed in to change notification settings - Fork 23
/
appveyor.yml
34 lines (26 loc) · 1.01 KB
/
appveyor.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
version: '{build}'
skip_branch_with_pr: true
image: Visual Studio 2019
cache:
- C:\Users\appveyor\.m2 -> **\pom.xml
install:
- choco install microsoft-openjdk17
- set MAVEN_VERSION=3.9.5
- choco install maven --version %MAVEN_VERSION%
- refreshenv
- mvn -version
environment:
MSBUILD_PATH: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe
before_build:
- nuget restore
build_script:
- mvn help:effective-pom
- mvn clean install --batch-mode -DbuildVersion=%APPVEYOR_BUILD_VERSION%
- ps: if ($env:APPVEYOR_PULL_REQUEST_HEAD_REPO_BRANCH) { $env:APPVEYOR_REPO_BRANCH = $env:APPVEYOR_PULL_REQUEST_HEAD_REPO_BRANCH; }
- mvn sonar:sonar -Dsonar.projectKey=lg2de_sonar-scm-tfvc -Dsonar.organization=lg2de -Dsonar.host.url=https://sonarcloud.io -Dsonar.token=%SONAR_TOKEN% -Dsonar.branch.name=%APPVEYOR_REPO_BRANCH%
test: off
artifacts:
- path: sonar-scm-tfvc-plugin/target/*.jar
name: plugin
- path: SonarTfsAnnotate/bin/Release/SonarTfsAnnotate.exe
name: proxy