-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
infra: fix build and plugin execution #434
Conversation
https://app.circleci.com/pipelines/github/checkstyle/sonar-checkstyle/690/workflows/5c9a0e73-fd6f-4fa8-9a60-8384b0cbfdcf/jobs/664?invite=true#step-103-245 |
Found some docker image maintenance at https://hub.docker.com/repository/docker/checkstyle/sonarqube-maven-git |
https://app.circleci.com/pipelines/github/checkstyle/sonar-checkstyle/693/workflows/60b90dc0-263b-4a11-8013-459a9e470d60/jobs/667?invite=true#step-103-382
|
prerequisite: we will need to update the used image to use SQ 9+ as this is the current version necessary by the plugin. i did not find such image on dockerhub, though. |
affae91
to
40c8893
Compare
1fc3e51
to
6bed351
Compare
Build and execution of sonar takes less than 2 minutes, I do not see necessity of cache usage. |
- persist_to_workspace: | ||
root: /home/circleci | ||
paths: | ||
- project |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do not need composed images, since we can build jar and generate class files in previous step, and persist the project directory for sonar execution job.
- run: | ||
name: Install packages | ||
command: apk add maven |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Installation of maven takes less than 5 seconds, I do not think we need custom sonar image with maven pre-installed
Kudos, SonarCloud Quality Gate passed! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok to merge.
Agree, We do not need custom image in 2022 year, docker in circleci is quick and sonar provide docker itself
This circleci run actually runs our plugin with sonar, so this is one way to test. If we could find a way, we could configure this for integration tests. |
@nrmancuso Thank you so much for this. |
Identified at #433 (comment)