GoogleCloudPlatform / GoogleCloudPlatform/cloud-builders-community

SonarQube: java not found

Open
#429 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
1.3k
Forks
848
PR merge metrics
No merged PRs in 30d

Description

Hi, I've built the image as shown on sonarqube Readme file and uploaded to GCR to make available for cloud builds. On the console, after executing `gcloud builds submit . --config=cloudbuild.yaml` command, there's an output that it's inflating java:

`inflating: /opt/sonar-scanner-3.2.0.1227-linux/jre/bin/java`

After that, image is correctly uploaded and tagged at GCR, but when automatic build runs cloudbuild.yaml file of the project, there's an error:

`/opt/sonar-scanner-3.2.0.1227-linux/bin/sonar-scanner: exec: line 59: /opt/sonar-scanner-3.2.0.1227-linux/jre/bin/java: not found`

## Affected builder image
gcr.io/cloud-builders-community/sonarqube

## Expected Behavior
SonarQube scan the project.

## Actual Behavior
SonarQube shows an error when tries to use java although seems to be there when image is built.

## Steps to Reproduce the Problem

1. Create image and upload to the CGR
2. Add sonarqube scan step at project cloudbuild.xml
3. Run the build.

## Additional Info

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.