-
Notifications
You must be signed in to change notification settings - Fork 19
/
maven.yaml
41 lines (32 loc) · 823 Bytes
/
maven.yaml
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
#
# Maven Project Template
#
envs:
# Git config
FLOWCI_GIT_URL: "https://github.com/FlowCI/spring-petclinic-sample.git"
## Credential name if git repo url is ssh or login required for http
# FLOWCI_GIT_CREDENTIAL: "the credentail name your created"
docker:
image: "maven:3.6-jdk-8"
steps:
- name: clone
docker:
image: flowci/debian-git
plugin: 'gitclone'
allow_failure: false
- name: run unit test
envs:
MVN_CMD: "mvn clean test"
plugin: 'maven-runner'
- name: junit upload
plugin: "junit-report-uploader"
- name: jacoco upload
plugin: "jacoco-report-uploader"
- name: package
envs:
MVN_CMD: "mvn package -Dmaven.test.skip=true"
plugin: 'maven-runner'
- name: upload
envs:
artifact_pattern: "*.jar"
plugin: 'artifact-upload'