You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
824 B
34 lines
824 B
kind: pipeline
|
|
type: docker
|
|
name: projetDeCamille
|
|
|
|
trigger:
|
|
event:
|
|
- push
|
|
|
|
steps:
|
|
- name: build
|
|
image: maven:3.8.4-openjdk-17
|
|
commands:
|
|
- mvn package
|
|
|
|
- name: test
|
|
image: maven:3.8.4-openjdk-17
|
|
commands:
|
|
- mvn test
|
|
|
|
- name: sonnar
|
|
image: hub.codefirst.iut.uca.fr/marc.chevaldonne/codefirst-dronesonarplugin-dotnet7
|
|
secrets: [ SECRET_SONAR_LOGIN ]
|
|
environment:
|
|
sonar_host: https://codefirst.iut.uca.fr/sonar/
|
|
sonar_token:
|
|
from_secret: SECRET_SONAR_LOGIN
|
|
project_key: CICD_Java_Backend_Personal_Library_louis
|
|
coverage_exclusions: "support/tests/**"
|
|
commands:
|
|
mvn clean verify sonar:sonar \
|
|
-Dsonar.projectKey=CICD_Java_Backend_Personal_Library_louis \
|
|
-Dsonar.host.url=https://codefirst.iut.uca.fr/sonar \
|
|
-Dsonar.login=$${sonar_token}
|
|
depends_on: [test] |