Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

does sonarqube arm64 arch image support bitbucket runner?

Abhiraditya Singh
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 2, 2024

Hi Team, This is Abhiraditya and I have been using Sonarqube on x86 arch server before to optimize the cost I decided to move with the arm64 instance that is t4g, after some research I got to know it does support arm architecture, and I started using it alongside bitbucket runner and specified it in the yml file, (something like this)

 

image: node:18

definitions:
  steps:
     - step: &sonarqube-analysis
        name: SonarQube analysis
        runs-on:
            - self.hosted
            - linux
        image: maven:3.8.6-openjdk-11-slim
        services:
          - docker
        script:
          - curl -v "$SONAR_HOST_URL"
          - echo "Connectivity check completed"
          - pipe: sonarsource/sonarqube-scan:2.0.1
            variables:
              SONAR_HOST_URL: ${SONAR_HOST_URL}
              SONAR_TOKEN: ${SONAR_TOKEN}
              SONAR_DEBUG: "true"
              EXTRA_ARGS: "-Dsonar.projectKey=*** -Dsonar.sources=. -Dsonar.javascript.node.maxspace=8192"
          - echo "SonarQube analysis completed"

but here comes the issue as we know sonarqube gives the steps to specify in the the pipeline and i did the same but the error i am facing is:

 

Digest:
Status: Downloaded newer image for sonarsource/sonarqube-scan:2.0.1
70
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
71
exec /pipe.sh: exec format error

what can be the possible issue here?? because I cant find dedicated sonarqube:arm64 image..

Please guide.. Thank you.

1 answer

1 vote
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 8, 2024

Hi Abhiraditya and welcome to the community!

Based on the error message, this pipe was not built to work on ARM architecture. The pipe is built by SonarSource, so you will need to reach out to their support team to ask if they can develop it to work on ARM.

This is from the pipe's repo's README:

https://bitbucket.org/sonarsource/sonarqube-scan/src/master/

Support

To get help with this pipe, or to report issues or feature requests, please get in touch on our community forum.

If you are reporting an issue, please include:

  • the version of the pipe
  • relevant logs and error messages
  • steps to reproduce

In the meantime, if SonarSource has a CLI that can do what the pipe does and if that CLI works on ARM, you can use it instead. If that CLI is not preinstalled already in the Docker image you use as a build container, you would need to install it first by adding the necessary commands in your repo's bitbucket-pipelines.yml file.

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events