2020-09-05 15:17:49 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: compliance
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- pull_request
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build
|
|
|
|
pull: always
|
|
|
|
image: maven:3-alpine
|
|
|
|
commands:
|
2020-09-06 22:17:18 +00:00
|
|
|
- mvn install -DskipTests=true -B -V
|
|
|
|
- mvn test -B
|
2020-09-05 15:17:49 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: release
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: auth
|
|
|
|
pull: always
|
|
|
|
image: robertstettner/drone-mvn-auth
|
|
|
|
settings:
|
|
|
|
servers:
|
|
|
|
from_secret: maven_servers
|
|
|
|
|
|
|
|
|
|
|
|
- name: deploy
|
|
|
|
pull: always
|
|
|
|
image: maven:3-alpine
|
|
|
|
commands:
|
|
|
|
- mvn deploy -gs settings.xml
|