fix: run sonar scan in sonar container with Java

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-02 15:25:59 +07:00
parent f78fe82a71
commit 93dea76004

4
Jenkinsfile vendored
View File

@@ -21,7 +21,7 @@ def executeBuildPush() {
def executeScanCodeQuality() {
stage('Scan Code Quality') {
container('node') {
container('sonar') {
scanCodeQuality(projectKey: 'tictactoe')
}
}
@@ -40,7 +40,7 @@ def executeBumpChart() {
}
// ── Pipeline ───────────────────────────────────────────────────────
podTemplate(yaml: homelabK8sAgent(withTools: true)) {
podTemplate(yaml: homelabK8sAgent(withTools: true, withSonar: true)) {
node(POD_LABEL) {
withEnv(['DOCKER_HOST=tcp://localhost:2375']) {
checkout scm