wip
This commit is contained in:
+9
-12
@@ -10,23 +10,13 @@ stages:
|
|||||||
variables:
|
variables:
|
||||||
GITLAB_CLONE_DIR: "/builds/thischwa/CloudflareDNS-java"
|
GITLAB_CLONE_DIR: "/builds/thischwa/CloudflareDNS-java"
|
||||||
# GITLAB_CLONE_DIR: "cloudflaredns-java"
|
# GITLAB_CLONE_DIR: "cloudflaredns-java"
|
||||||
SONAR_HOST_URL: "https://sonarcloud.io"
|
SONAR_HOST_URL: $SONAR_HOST
|
||||||
SONAR_PROJECT_KEY: "thischwa_CloudflareDNS-java"
|
SONAR_PROJECT_KEY: "thischwa_CloudflareDNS-java"
|
||||||
SONAR_ORGANIZATION: "thischwa"
|
SONAR_ORGANIZATION: "thischwa"
|
||||||
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
|
||||||
|
|
||||||
|
|
||||||
#pull_source:
|
|
||||||
# stage: pull
|
|
||||||
# script:
|
|
||||||
# - echo "Cloning GitHub repository..."
|
|
||||||
# - git clone --depth 1 https://oauth2:${GITHUB_PERSONAL_ACCESS_TOKEN}@github.com/th-schwarz/CloudflareDNS-java.git ${GITLAB_CLONE_DIR}
|
|
||||||
# - echo "Repository cloned successfully."
|
|
||||||
# only:
|
|
||||||
# - schedules
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
@@ -56,7 +46,14 @@ sonarcloud_scan:
|
|||||||
name: sonarsource/sonar-scanner-cli:latest
|
name: sonarsource/sonar-scanner-cli:latest
|
||||||
entrypoint: [ "" ]
|
entrypoint: [ "" ]
|
||||||
script:
|
script:
|
||||||
- sonar-scanner -Dsonar.projectKey=${SONAR_PROJECT_KEY} -Dsonar.organization=${SONAR_ORGANIZATION} -Dsonar.token=${SONAR_TOKEN} -Dsonar.test.exclusions=src/test/java/**/* -Dsonar.exclusions=docs/** -Dsonar.java.binaries=target/classes
|
- |
|
||||||
|
sonar-scanner
|
||||||
|
-Dsonar.projectKey=${SONAR_PROJECT_KEY}
|
||||||
|
-Dsonar.organization=${SONAR_ORGANIZATION}
|
||||||
|
-Dsonar.token=${SONAR_TOKEN}
|
||||||
|
-Dsonar.test.exclusions=src/test/java/**/*
|
||||||
|
-Dsonar.exclusions=docs/**
|
||||||
|
-Dsonar.java.binaries=target/classes
|
||||||
only:
|
only:
|
||||||
- merge_requests
|
- merge_requests
|
||||||
- develop
|
- develop
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ Give it a try! [.
|
the [GitLab Issues page](https://gitlab.com/thischwa/CloudflareDNS-java/-/issues).
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user