Update sonarcloud pipelines to Java 17

Víctor Salvans
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!
August 3, 2023

Hi, I'm currently using the image sonarsource/sonarcloud-scan:1.4.0 to run my sonarcloud analysis through bitbucket pipelines.

image: atlassian/default-image:4
definitions:
services:
docker:
memory: 4096
caches:
sonar: ~/.sonar/cache # Caching SonarCloud artifacts will speed up your build
analyze: &analyze
- step:
name: "Analyze on SonarCloud"
size: 2x
caches:
- sonar
script:
- pipe: sonarsource/sonarcloud-scan:1.4.0
variables:
SONAR_SCANNER_OPTS: -Xmx1024m
- pipe: sonarsource/sonarcloud-quality-gate:0.1.6
variables:
SONAR_SCANNER_OPTS: -Xmx1024m
pipelines:
pull-requests:
'**':
- <<: *analyze

I got the following warning message from sonarcloud:

The version of Java (11.0.3) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17. Read more

Does Atlassian plan to update this image with Java 17?

1 answer

1 accepted

0 votes
Answer accepted
Oleksandr Kyrdan
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 4, 2023

Hi @Víctor Salvans 

Thank you for your question!

The pipe is maintained by sonarsource team, please follow the link in the Support section of the README.md and suggest to do all needed updates.

 

Best regards,
Oleksandr Kyrdan

Víctor Salvans
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!
August 4, 2023
Like Oleksandr Kyrdan likes this
J_ Stolp May 6, 2024

update

sonarsource/sonarcloud-scan:1.4.0


to:

sonarsource/sonarcloud-scan:2.0.0

 

Suggest an answer

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

Atlassian Community Events