liste-de-courses/.drone.yml

22 lines
588 B
YAML
Raw Normal View History

2022-07-19 14:51:49 +00:00
kind: pipeline
2022-07-19 15:00:29 +00:00
type: docker
2022-07-19 14:51:49 +00:00
name: default
2022-07-22 18:52:34 +00:00
2022-07-19 14:51:49 +00:00
steps:
- name: test
2022-07-22 20:06:36 +00:00
image: maven:3-jdk-11
2022-07-19 14:51:49 +00:00
commands:
- mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
2022-07-22 18:52:34 +00:00
- mvn test -B
- name: analyse
2022-07-22 20:06:36 +00:00
image: maven:3-jdk-11
2022-07-22 19:45:44 +00:00
failure: ignore
2022-07-22 19:39:14 +00:00
commands:
- echo $SONAR_HOST_URL
- echo $SONAR_LOGIN
- mvn clean verify sonar:sonar -Dsonar.projectKey=LDC -Dsonar.host.url=$SONAR_HOST_URL -Dsonar.login=$SONAR_LOGIN
2022-07-22 18:54:00 +00:00
environment:
SONAR_HOST_URL:
from_secret: sonarScannerHostUrl
SONAR_LOGIN:
2022-07-22 19:39:14 +00:00
from_secret: sonarScannerLogin