-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
45 lines (39 loc) · 1.2 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
name: $(Build.SourceBranch)-$(date:yyyyMMdd)$(rev:.r)
# Pipeline triggers on any branch and tag
trigger:
branches:
include:
- '*'
tags:
include:
- '*'
resources:
repositories:
- repository: templates
type: github
name: statisticsnorway/azure-pipelines-templates
endpoint: statisticsnorway
# Pipeline will be run on this base image
pool:
vmImage: 'ubuntu-latest'
# Variables global to this pipeline
# https://docs.microsoft.com/en-us/azure/devops/pipelines/process/variables
variables:
# Variables defined in Pipelines->Library->Variable Groups in your project in
# Azure Pipelines
- group: Hemmeligheter
# Variables defined here
- name: MAVEN_CACHE_FOLDER
value: $(Pipeline.Workspace)/.m2/repository
- name: MAVEN_OPTS
value: '-Dmaven.repo.local=$(MAVEN_CACHE_FOLDER)'
# Job which will run mvn build, mvn install and Sonar Analysis (if branch is master)
jobs:
- template: java/library-complete-build.yml@templates
parameters:
artifactName: tink-fpe-java
mavenContainer: maven:3.8-openjdk-17
checkStyleRunAnalysis: true
pmdRunAnalysis: true
sonarQubeRunAnalysis: false
sonarCloud: bipSonarCloud-Dapla