This commit is contained in:
2025-04-09 18:18:46 +02:00
parent ead5bf04d5
commit 7d3e944f48
+4 -1
View File
@@ -16,11 +16,14 @@ variables:
SONAR_TOKEN: $SONAR_TOKEN # Ensure this token is correctly set in GitLab CI/CD variables SONAR_TOKEN: $SONAR_TOKEN # Ensure this token is correctly set in GitLab CI/CD variables
SONAR_USER_HOME: "${CI_PROJECT_DIR}/.sonar" # Defines the location of the analysis task cache SONAR_USER_HOME: "${CI_PROJECT_DIR}/.sonar" # Defines the location of the analysis task cache
GIT_DEPTH: "0" # Tells git to fetch all the branches of the project, required by the analysis task GIT_DEPTH: "0" # Tells git to fetch all the branches of the project, required by the analysis task
API_EMAIL: $API_EMAIL
API_KEY: $API_KEY
API_TOKEN: $API_TOKEN
build: build:
stage: build stage: build
script: script:
- mvn clean package -DskipTests - mvn clean package
artifacts: artifacts:
paths: paths:
- target/ - target/