2020-10-03 01:07:59 +02:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
steps:
|
2023-04-04 01:55:49 +02:00
|
|
|
- name: build
|
|
|
|
image: maven:3.8-openjdk-18-slim
|
2020-10-03 01:07:59 +02:00
|
|
|
commands:
|
|
|
|
- mvn clean install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
|
2023-04-04 01:55:49 +02:00
|
|
|
when:
|
|
|
|
ref:
|
|
|
|
include:
|
|
|
|
- refs/head/master
|
|
|
|
- refs/head/feature/**
|
|
|
|
- refs/tags/**
|
|
|
|
- name: test
|
|
|
|
image: maven:3.8-openjdk-18-slim
|
|
|
|
commands:
|
2020-10-03 01:07:59 +02:00
|
|
|
- mvn test -B
|
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
include:
|
|
|
|
- master
|
|
|
|
- feature/*
|
2020-10-04 23:17:37 +02:00
|
|
|
- name: deploy
|
2023-04-04 01:55:49 +02:00
|
|
|
image: maven:3.8-openjdk-18-slim
|
2020-10-04 23:17:37 +02:00
|
|
|
environment:
|
|
|
|
REPO_TOKEN:
|
|
|
|
from_secret: repo-token
|
2023-05-16 02:26:45 +02:00
|
|
|
REPO_TOKEN_OSSRH:
|
|
|
|
from_secret: repo-token-ossrh
|
2020-10-04 23:17:37 +02:00
|
|
|
commands:
|
2020-10-06 01:53:09 +02:00
|
|
|
- mvn -s maven-settings.xml deploy -DskipTests=true
|
2023-04-04 01:55:49 +02:00
|
|
|
when:
|
2020-10-04 23:17:37 +02:00
|
|
|
branch:
|
2022-02-02 01:12:31 +01:00
|
|
|
- master
|
|
|
|
event:
|
|
|
|
exclude:
|
2023-04-04 01:55:49 +02:00
|
|
|
- pull_request
|