Error running solarcloud analysis

  • ALM used GitHub
  • CI system used Github actions
  • Languages of the repository Javascript
  • Error observed " INFO: Total time: 10.468s

34ERROR: Error during SonarScanner execution

35INFO: Final Memory: 7M/30M

36ERROR: You are running CI analysis while Automatic Analysis is enabled. Please consider disabling one or the other.

37ERROR:

38ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.

39INFO: ------------------------------------------------------------------------"

Hey there.

If you visit the Administration > Analysis Method of your project, do you see Automatic Analysis enabled?

jobs:
sonarcloud:
#needs: [ on-success ]
name: SonarCloud
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis....
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.PAT }} # Needed to get PR information, if any exist
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
#run: npx sonarqube-scanner
- name: Get SonarCloud quality gate status
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: |
RESULT=$(curl -u "$SONAR_TOKEN:" "https://sonarcloud.io/api/qualitygates/project_status?projectKey=GIGXPad-com_xpad-web-v2&analysisId=$SONAR_ANALYSIS_ID")
STATUS=$(echo $RESULT | jq -r .status)
echo $STATUS
- name: Check quality gate status
if: ${{ env.STATUS == 'ERROR' }}
run: |
echo "Quality gate status is ERROR"
exit 1

the result is coming back as null

Hey there.

It’s important to treat this like a conversation: not just pasting configuration files and logs. Can you address the last question asked in this thread?

I don’t know about OP, but your response helped me with a similar issue. I added a new project this morning and saw this error message. Turning off automatic analysis fixed the issue for me. Thanks!