DEPLOY_PULL_REQUEST: true | DEPLOY_PULL_REQUEST: true | ||||
ARTIFACTS: org.sonarsource.scanner.cli:sonar-scanner-cli:jar | ARTIFACTS: org.sonarsource.scanner.cli:sonar-scanner-cli:jar | ||||
# | # | ||||
# RE-USABLE CONFIGS | # RE-USABLE CONFIGS | ||||
# | # | ||||
only_sonarsource_qa: &ONLY_SONARSOURCE_QA | only_sonarsource_qa: &ONLY_SONARSOURCE_QA | ||||
only_if: $CIRRUS_USER_COLLABORATOR == 'true' && ($CIRRUS_PR != "" || $CIRRUS_BRANCH == "master" || $CIRRUS_BRANCH =~ "branch-.*" || $CIRRUS_BRANCH =~ "dogfood-on-.*") | only_if: $CIRRUS_USER_COLLABORATOR == 'true' && ($CIRRUS_PR != "" || $CIRRUS_BRANCH == "master" || $CIRRUS_BRANCH =~ "branch-.*" || $CIRRUS_BRANCH =~ "dogfood-on-.*") | ||||
# | # | ||||
# TASKS | # TASKS | ||||
# | # | ||||
eks_container: | eks_container: | ||||
<<: *EKS_CONTAINER | <<: *EKS_CONTAINER | ||||
env: | env: | ||||
matrix: | |||||
- SQ_VERSION: LATEST_RELEASE[8.9] | |||||
- SQ_VERSION: DEV | |||||
SQ_VERSION: LATEST_RELEASE[8.9] | |||||
maven_cache: | maven_cache: | ||||
folder: ${CIRRUS_WORKING_DIR}/.m2/repository | folder: ${CIRRUS_WORKING_DIR}/.m2/repository | ||||
qa_script: | qa_script: | ||||
<<: *EC2_INSTANCE_WINDOWS | <<: *EC2_INSTANCE_WINDOWS | ||||
env: | env: | ||||
CIRRUS_SHELL: bash | CIRRUS_SHELL: bash | ||||
matrix: | |||||
- SQ_VERSION: LATEST_RELEASE[8.9] | |||||
- SQ_VERSION: DEV | |||||
SQ_VERSION: LATEST_RELEASE[8.9] | |||||
maven_cache: | maven_cache: | ||||
folder: ${CIRRUS_WORKING_DIR}/.m2/repository | folder: ${CIRRUS_WORKING_DIR}/.m2/repository | ||||
qa_script: | qa_script: |
SonarQube Scanner | SonarQube Scanner | ||||
Copyright (C) 2011-2020 SonarSource SA | |||||
Copyright (C) 2011-2023 SonarSource SA | |||||
mailto:info AT sonarsource DOT com | mailto:info AT sonarsource DOT com | ||||
This product includes software developed at | This product includes software developed at |
Scanner CLI for SonarQube and SonarCloud | |||||
========================= | |||||
# Scanner CLI for SonarQube and SonarCloud | |||||
Official scanner used to run code analysis on SonarQube and SonarCloud. Project configuration is read from file `sonar-project.properties` or passed on command line. | Official scanner used to run code analysis on SonarQube and SonarCloud. Project configuration is read from file `sonar-project.properties` or passed on command line. | ||||
[![Build Status](https://api.cirrus-ci.com/github/SonarSource/sonar-scanner-cli.svg)](https://cirrus-ci.com/github/SonarSource/sonar-scanner-cli) | [![Build Status](https://api.cirrus-ci.com/github/SonarSource/sonar-scanner-cli.svg)](https://cirrus-ci.com/github/SonarSource/sonar-scanner-cli) | ||||
[![Build status](https://ci.appveyor.com/api/projects/status/s3sg3fhui556v02o/branch/master?svg=true)](https://ci.appveyor.com/project/henryju/sonar-scanner-cli/branch/master) [![Quality Gate Status](https://next.sonarqube.com/sonarqube/api/project_badges/measure?project=org.sonarsource.scanner.cli%3Asonar-scanner-cli&metric=alert_status)](https://next.sonarqube.com/sonarqube/dashboard?id=org.sonarsource.scanner.cli%3Asonar-scanner-cli) | [![Build status](https://ci.appveyor.com/api/projects/status/s3sg3fhui556v02o/branch/master?svg=true)](https://ci.appveyor.com/project/henryju/sonar-scanner-cli/branch/master) [![Quality Gate Status](https://next.sonarqube.com/sonarqube/api/project_badges/measure?project=org.sonarsource.scanner.cli%3Asonar-scanner-cli&metric=alert_status)](https://next.sonarqube.com/sonarqube/dashboard?id=org.sonarsource.scanner.cli%3Asonar-scanner-cli) | ||||
Documentation | |||||
------------- | |||||
## Documentation | |||||
https://redirect.sonarsource.com/doc/install-configure-scanner.html | https://redirect.sonarsource.com/doc/install-configure-scanner.html | ||||
Have Question or Feedback? | |||||
-------------------------- | |||||
## Have Question or Feedback? | |||||
For support questions ("How do I?", "I got this error, why?", ...), please head to the [SonarSource forum](https://community.sonarsource.com/c/help). There are chances that a question similar to yours has already been answered. | For support questions ("How do I?", "I got this error, why?", ...), please head to the [SonarSource forum](https://community.sonarsource.com/c/help). There are chances that a question similar to yours has already been answered. | ||||
Be aware that this forum is a community, so the standard pleasantries ("Hi", "Thanks", ...) are expected. And if you don't get an answer to your thread, you should sit on your hands for at least three days before bumping it. Operators are not standing by. :-) | Be aware that this forum is a community, so the standard pleasantries ("Hi", "Thanks", ...) are expected. And if you don't get an answer to your thread, you should sit on your hands for at least three days before bumping it. Operators are not standing by. :-) | ||||
Contributing | |||||
------------ | |||||
## Contributing | |||||
If you would like to see a new feature, please create a new thread in the forum ["Suggest new features"](https://community.sonarsource.com/c/suggestions/features). | If you would like to see a new feature, please create a new thread in the forum ["Suggest new features"](https://community.sonarsource.com/c/suggestions/features). | ||||
Make sure that you follow our [code style](https://github.com/SonarSource/sonar-developer-toolset#code-style) and all tests are passing (Travis build is executed for each pull request). | Make sure that you follow our [code style](https://github.com/SonarSource/sonar-developer-toolset#code-style) and all tests are passing (Travis build is executed for each pull request). | ||||
## License | |||||
License | |||||
------- | |||||
Copyright 2011-2022 SonarSource. | |||||
Copyright 2011-2023 SonarSource. | |||||
Licensed under the [GNU Lesser General Public License, Version 3.0](http://www.gnu.org/licenses/lgpl.txt) | Licensed under the [GNU Lesser General Public License, Version 3.0](http://www.gnu.org/licenses/lgpl.txt) |
<parent> | <parent> | ||||
<groupId>org.sonarsource.parent</groupId> | <groupId>org.sonarsource.parent</groupId> | ||||
<artifactId>parent</artifactId> | <artifactId>parent</artifactId> | ||||
<version>60.0.52</version> | |||||
<version>65.0.218</version> | |||||
<relativePath /> | <relativePath /> | ||||
</parent> | </parent> | ||||
/* | /* | ||||
* SonarSource :: IT :: SonarScanner CLI | * SonarSource :: IT :: SonarScanner CLI | ||||
* Copyright (C) 2009-2022 SonarSource SA | |||||
* Copyright (C) 2009-2023 SonarSource SA | |||||
* mailto:info AT sonarsource DOT com | * mailto:info AT sonarsource DOT com | ||||
* | * | ||||
* This program is free software; you can redistribute it and/or | * This program is free software; you can redistribute it and/or |
/* | /* | ||||
* SonarSource :: IT :: SonarScanner CLI | * SonarSource :: IT :: SonarScanner CLI | ||||
* Copyright (C) 2009-2022 SonarSource SA | |||||
* Copyright (C) 2009-2023 SonarSource SA | |||||
* mailto:info AT sonarsource DOT com | * mailto:info AT sonarsource DOT com | ||||
* | * | ||||
* This program is free software; you can redistribute it and/or | * This program is free software; you can redistribute it and/or |
/* | /* | ||||
* SonarSource :: IT :: SonarScanner CLI | * SonarSource :: IT :: SonarScanner CLI | ||||
* Copyright (C) 2009-2022 SonarSource SA | |||||
* Copyright (C) 2009-2023 SonarSource SA | |||||
* mailto:info AT sonarsource DOT com | * mailto:info AT sonarsource DOT com | ||||
* | * | ||||
* This program is free software; you can redistribute it and/or | * This program is free software; you can redistribute it and/or |
/* | /* | ||||
* SonarSource :: IT :: SonarScanner CLI | * SonarSource :: IT :: SonarScanner CLI | ||||
* Copyright (C) 2009-2022 SonarSource SA | |||||
* Copyright (C) 2009-2023 SonarSource SA | |||||
* mailto:info AT sonarsource DOT com | * mailto:info AT sonarsource DOT com | ||||
* | * | ||||
* This program is free software; you can redistribute it and/or | * This program is free software; you can redistribute it and/or |
/* | /* | ||||
* SonarSource :: IT :: SonarScanner CLI | * SonarSource :: IT :: SonarScanner CLI | ||||
* Copyright (C) 2009-2022 SonarSource SA | |||||
* Copyright (C) 2009-2023 SonarSource SA | |||||
* mailto:info AT sonarsource DOT com | * mailto:info AT sonarsource DOT com | ||||
* | * | ||||
* This program is free software; you can redistribute it and/or | * This program is free software; you can redistribute it and/or |
<parent> | <parent> | ||||
<groupId>org.sonarsource.parent</groupId> | <groupId>org.sonarsource.parent</groupId> | ||||
<artifactId>parent</artifactId> | <artifactId>parent</artifactId> | ||||
<version>64.0.211</version> | |||||
<version>65.0.218</version> | |||||
</parent> | </parent> | ||||
<groupId>org.sonarsource.scanner.cli</groupId> | <groupId>org.sonarsource.scanner.cli</groupId> |
/* | /* | ||||
* SonarScanner CLI | * SonarScanner CLI | ||||
* Copyright (C) 2011-2022 SonarSource SA | |||||
* Copyright (C) 2011-2023 SonarSource SA | |||||
* mailto:info AT sonarsource DOT com | * mailto:info AT sonarsource DOT com | ||||
* | * | ||||
* This program is free software; you can redistribute it and/or | * This program is free software; you can redistribute it and/or |
/* | /* | ||||
* SonarScanner CLI | * SonarScanner CLI | ||||
* Copyright (C) 2011-2022 SonarSource SA | |||||
* Copyright (C) 2011-2023 SonarSource SA | |||||
* mailto:info AT sonarsource DOT com | * mailto:info AT sonarsource DOT com | ||||
* | * | ||||
* This program is free software; you can redistribute it and/or | * This program is free software; you can redistribute it and/or |
/* | /* | ||||
* SonarScanner CLI | * SonarScanner CLI | ||||
* Copyright (C) 2011-2022 SonarSource SA | |||||
* Copyright (C) 2011-2023 SonarSource SA | |||||
* mailto:info AT sonarsource DOT com | * mailto:info AT sonarsource DOT com | ||||
* | * | ||||
* This program is free software; you can redistribute it and/or | * This program is free software; you can redistribute it and/or |
/* | /* | ||||
* SonarScanner CLI | * SonarScanner CLI | ||||
* Copyright (C) 2011-2022 SonarSource SA | |||||
* Copyright (C) 2011-2023 SonarSource SA | |||||
* mailto:info AT sonarsource DOT com | * mailto:info AT sonarsource DOT com | ||||
* | * | ||||
* This program is free software; you can redistribute it and/or | * This program is free software; you can redistribute it and/or |
/* | /* | ||||
* SonarScanner CLI | * SonarScanner CLI | ||||
* Copyright (C) 2011-2022 SonarSource SA | |||||
* Copyright (C) 2011-2023 SonarSource SA | |||||
* mailto:info AT sonarsource DOT com | * mailto:info AT sonarsource DOT com | ||||
* | * | ||||
* This program is free software; you can redistribute it and/or | * This program is free software; you can redistribute it and/or |
/* | /* | ||||
* SonarScanner CLI | * SonarScanner CLI | ||||
* Copyright (C) 2011-2022 SonarSource SA | |||||
* Copyright (C) 2011-2023 SonarSource SA | |||||
* mailto:info AT sonarsource DOT com | * mailto:info AT sonarsource DOT com | ||||
* | * | ||||
* This program is free software; you can redistribute it and/or | * This program is free software; you can redistribute it and/or |
/* | /* | ||||
* SonarScanner CLI | * SonarScanner CLI | ||||
* Copyright (C) 2011-2022 SonarSource SA | |||||
* Copyright (C) 2011-2023 SonarSource SA | |||||
* mailto:info AT sonarsource DOT com | * mailto:info AT sonarsource DOT com | ||||
* | * | ||||
* This program is free software; you can redistribute it and/or | * This program is free software; you can redistribute it and/or |
/* | /* | ||||
* SonarScanner CLI | * SonarScanner CLI | ||||
* Copyright (C) 2011-2022 SonarSource SA | |||||
* Copyright (C) 2011-2023 SonarSource SA | |||||
* mailto:info AT sonarsource DOT com | * mailto:info AT sonarsource DOT com | ||||
* | * | ||||
* This program is free software; you can redistribute it and/or | * This program is free software; you can redistribute it and/or |
/* | /* | ||||
* SonarScanner CLI | * SonarScanner CLI | ||||
* Copyright (C) 2011-2022 SonarSource SA | |||||
* Copyright (C) 2011-2023 SonarSource SA | |||||
* mailto:info AT sonarsource DOT com | * mailto:info AT sonarsource DOT com | ||||
* | * | ||||
* This program is free software; you can redistribute it and/or | * This program is free software; you can redistribute it and/or |
/* | /* | ||||
* SonarScanner CLI | * SonarScanner CLI | ||||
* Copyright (C) 2011-2022 SonarSource SA | |||||
* Copyright (C) 2011-2023 SonarSource SA | |||||
* mailto:info AT sonarsource DOT com | * mailto:info AT sonarsource DOT com | ||||
* | * | ||||
* This program is free software; you can redistribute it and/or | * This program is free software; you can redistribute it and/or |
/* | /* | ||||
* SonarScanner CLI | * SonarScanner CLI | ||||
* Copyright (C) 2011-2022 SonarSource SA | |||||
* Copyright (C) 2011-2023 SonarSource SA | |||||
* mailto:info AT sonarsource DOT com | * mailto:info AT sonarsource DOT com | ||||
* | * | ||||
* This program is free software; you can redistribute it and/or | * This program is free software; you can redistribute it and/or |
/* | /* | ||||
* SonarScanner CLI | * SonarScanner CLI | ||||
* Copyright (C) 2011-2022 SonarSource SA | |||||
* Copyright (C) 2011-2023 SonarSource SA | |||||
* mailto:info AT sonarsource DOT com | * mailto:info AT sonarsource DOT com | ||||
* | * | ||||
* This program is free software; you can redistribute it and/or | * This program is free software; you can redistribute it and/or |
/* | /* | ||||
* SonarScanner CLI | * SonarScanner CLI | ||||
* Copyright (C) 2011-2022 SonarSource SA | |||||
* Copyright (C) 2011-2023 SonarSource SA | |||||
* mailto:info AT sonarsource DOT com | * mailto:info AT sonarsource DOT com | ||||
* | * | ||||
* This program is free software; you can redistribute it and/or | * This program is free software; you can redistribute it and/or |
/* | /* | ||||
* SonarScanner CLI | * SonarScanner CLI | ||||
* Copyright (C) 2011-2022 SonarSource SA | |||||
* Copyright (C) 2011-2023 SonarSource SA | |||||
* mailto:info AT sonarsource DOT com | * mailto:info AT sonarsource DOT com | ||||
* | * | ||||
* This program is free software; you can redistribute it and/or | * This program is free software; you can redistribute it and/or |
/* | /* | ||||
* SonarScanner CLI | * SonarScanner CLI | ||||
* Copyright (C) 2011-2022 SonarSource SA | |||||
* Copyright (C) 2011-2023 SonarSource SA | |||||
* mailto:info AT sonarsource DOT com | * mailto:info AT sonarsource DOT com | ||||
* | * | ||||
* This program is free software; you can redistribute it and/or | * This program is free software; you can redistribute it and/or |
/* | /* | ||||
* SonarScanner CLI | * SonarScanner CLI | ||||
* Copyright (C) 2011-2022 SonarSource SA | |||||
* Copyright (C) 2011-2023 SonarSource SA | |||||
* mailto:info AT sonarsource DOT com | * mailto:info AT sonarsource DOT com | ||||
* | * | ||||
* This program is free software; you can redistribute it and/or | * This program is free software; you can redistribute it and/or |
/* | /* | ||||
* SonarScanner CLI | * SonarScanner CLI | ||||
* Copyright (C) 2011-2022 SonarSource SA | |||||
* Copyright (C) 2011-2023 SonarSource SA | |||||
* mailto:info AT sonarsource DOT com | * mailto:info AT sonarsource DOT com | ||||
* | * | ||||
* This program is free software; you can redistribute it and/or | * This program is free software; you can redistribute it and/or |
/* | /* | ||||
* SonarScanner CLI | * SonarScanner CLI | ||||
* Copyright (C) 2011-2022 SonarSource SA | |||||
* Copyright (C) 2011-2023 SonarSource SA | |||||
* mailto:info AT sonarsource DOT com | * mailto:info AT sonarsource DOT com | ||||
* | * | ||||
* This program is free software; you can redistribute it and/or | * This program is free software; you can redistribute it and/or |
/* | /* | ||||
* SonarScanner CLI | * SonarScanner CLI | ||||
* Copyright (C) 2011-2022 SonarSource SA | |||||
* Copyright (C) 2011-2023 SonarSource SA | |||||
* mailto:info AT sonarsource DOT com | * mailto:info AT sonarsource DOT com | ||||
* | * | ||||
* This program is free software; you can redistribute it and/or | * This program is free software; you can redistribute it and/or |
/* | /* | ||||
* SonarScanner CLI | * SonarScanner CLI | ||||
* Copyright (C) 2011-2022 SonarSource SA | |||||
* Copyright (C) 2011-2023 SonarSource SA | |||||
* mailto:info AT sonarsource DOT com | * mailto:info AT sonarsource DOT com | ||||
* | * | ||||
* This program is free software; you can redistribute it and/or | * This program is free software; you can redistribute it and/or |