diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2265a3b..9316f08 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -10,23 +10,13 @@ stages: variables: GITLAB_CLONE_DIR: "/builds/thischwa/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_ORGANIZATION: "thischwa" 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 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: stage: build script: @@ -56,7 +46,14 @@ sonarcloud_scan: name: sonarsource/sonar-scanner-cli:latest entrypoint: [ "" ] 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: - merge_requests - develop diff --git a/README.md b/README.md index f3f6c5f..7bbd19c 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ Give it a try! [![GitHub release (latest by date including pre-releases)](https: This project provides a java client for minimalistic access to the Cloudflare API, which is mainly used for managing DNS settings such as creating, updating and deleting DNS records. If you encounter any bugs or find missing features, feel free to report them on -the [GitHub Issues page](https://github.com/th-schwarz/CloudflareDNS-java/issues). +the [GitLab Issues page](https://gitlab.com/thischwa/CloudflareDNS-java/-/issues). ---