Template for a good new topic, formatted with Markdown:
- ALM used (GitHub, Bitbucket Cloud, Azure DevOps)
github - CI system used (Bitbucket Cloud, Azure DevOps, Travis CI, Circle CI
github actions - Scanner command used when applicable (private details masked)
jobs:
sonarCloudTrigger:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: make Patrol and run
run: |
cd ./Patrol_algorithm;
autoreconf -ivf
ls -l configure;
chmod 775 configure;
./configure;
make;
./Patrol_algorithm;
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
sonar-project.properties:
sonar.projectKey=Patrol
sonar.organization=freeeyes-github
sonar.projectName=Patrol_algorithm
sonar.projectVersion=1.0
sonar.host.url=https://sonarcloud.io
sonar.sourceEncoding=UTF-8
sonar.branch.name=master
sonar.sources=./Patrol_algorithm
sonar.cfamily.build-wrapper-output=./Patrol_algorithm/bw-output
- Languages of the repository
C++ - Only if the SonarCloud project is public, the URL
- And if you need help with pull request decoration, then the URL to the PR too
https://github.com/freeeyes/Patrol_algorithm - Error observed (wrap logs/code around with triple quotes ``` for proper formatting)
2019-12-04T05:35:40.2760422Z ##[command]/usr/bin/docker run --name f6cdebdea76c8841e84a3eb3be595c445cae1a_24cc8a --label f6cdeb --workdir /github/workspace --rm -e GITHUB_TOKEN -e SONAR_TOKEN -e INPUT_PROJECTBASEDIR -e HOME -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e RUNNER_OS -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e GITHUB_ACTIONS=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/Patrol_algorithm/Patrol_algorithm":"/github/workspace" f6cdeb:dea76c8841e84a3eb3be595c445cae1a
2019-12-04T05:35:41.0103851Z INFO: Scanner configuration file: /opt/sonar-scanner/conf/sonar-scanner.properties
2019-12-04T05:35:41.0111473Z INFO: Project root configuration file: /github/workspace/sonar-project.properties
2019-12-04T05:35:41.0497480Z INFO: SonarQube Scanner 3.3.0.1492
2019-12-04T05:35:41.0501466Z INFO: Java 11.0.5 Oracle Corporation (64-bit)
2019-12-04T05:35:41.0502908Z INFO: Linux 5.0.0-1023-azure amd64
2019-12-04T05:35:41.3690945Z INFO: User cache: /root/.sonar/cache
2019-12-04T05:35:43.6839875Z INFO: SonarQube server 8.0.0
2019-12-04T05:35:43.6840826Z INFO: Default locale: "en", source code encoding: "UTF-8"
2019-12-04T05:35:44.0802047Z INFO: Load global settings
2019-12-04T05:35:44.7140699Z INFO: Load global settings (done) | time=634ms
2019-12-04T05:35:44.7204978Z INFO: Server id: 74E9293D-AWHW8ct9-T_TB3XqouNu
2019-12-04T05:35:44.7232533Z INFO: User cache: /root/.sonar/cache
2019-12-04T05:35:44.7258835Z INFO: Load/download plugins
2019-12-04T05:35:44.7261442Z INFO: Load plugins index
2019-12-04T05:35:44.8726283Z INFO: Load plugins index (done) | time=147ms
2019-12-04T05:36:04.0336582Z INFO: Load/download plugins (done) | time=19308ms
2019-12-04T05:36:04.3111847Z INFO: Loaded core extensions: developer-scanner
2019-12-04T05:36:04.9782533Z INFO: Process project properties
2019-12-04T05:36:04.9862532Z INFO: Execute project builders
2019-12-04T05:36:04.9955002Z INFO: Execute project builders (done) | time=10ms
2019-12-04T05:36:04.9984822Z INFO: Project key: Patrol
2019-12-04T05:36:04.9992836Z INFO: Base dir: /github/workspace
2019-12-04T05:36:04.9999190Z INFO: Working dir: /github/workspace/.scannerwork
2019-12-04T05:36:05.0076004Z INFO: Load project settings for component key: 'Patrol'
2019-12-04T05:36:05.1851548Z INFO: Found an active CI vendor: 'Github Actions'
2019-12-04T05:36:05.1870332Z INFO: Load project branches
2019-12-04T05:36:05.2866543Z INFO: Load project branches (done) | time=100ms
2019-12-04T05:36:05.2890787Z INFO: Load projects for organization 'freeeyes-github'
2019-12-04T05:36:05.3930508Z INFO: Load projects for organization 'freeeyes-github' (done) | time=104ms
2019-12-04T05:36:05.3943280Z INFO: Load project pull requests
2019-12-04T05:36:05.4942019Z INFO: Load project pull requests (done) | time=99ms
2019-12-04T05:36:05.4962650Z INFO: Load branch configuration
2019-12-04T05:36:05.4974917Z INFO: Github event: push
2019-12-04T05:36:05.6501172Z INFO: Auto-configuring branch master
2019-12-04T05:36:05.6576033Z INFO: ------------------------------------------------------------------------
2019-12-04T05:36:05.6582664Z INFO: EXECUTION FAILURE
2019-12-04T05:36:05.6587951Z INFO: ------------------------------------------------------------------------
2019-12-04T05:36:05.6592915Z INFO: Total time: 24.649s
2019-12-04T05:36:05.6936751Z INFO: Final Memory: 7M/27M
2019-12-04T05:36:05.6940984Z INFO: ------------------------------------------------------------------------
2019-12-04T05:36:05.6943837Z ERROR: Error during SonarQube Scanner execution
2019-12-04T05:36:05.6946983Z ERROR: Project was never analyzed. A regular analysis is required before a branch analysis.
2019-12-04T05:36:05.6949961Z ERROR:
2019-12-04T05:36:05.6952728Z ERROR: Re-run SonarQube Scanner using the -X switch to enable full debug logging.
2019-12-04T05:36:06.3035974Z ##[error]Docker run failed with exit code 1
- Steps to reproduce
https://pipelines.actions.githubusercontent.com/Zhfp3G1aphHUodk0clpG5PciUqaNfK2wxUYsqMknv5JpNsSOKU/_apis/pipelines/1/runs/38/signedlogcontent/3?urlExpires=2019-12-04T05%3A50%3A37.4742571Z&urlSigningMethod=HMACV1&urlSignature=G633t9jSFMwFsxT6JlEQFHkhEDBKtaU%2BKsyziWGq3Co%3D - Potential workaround
None