From 93dea76004e442a2f3c8a7eb76b91ea627d96b08 Mon Sep 17 00:00:00 2001 From: duynguyen Date: Sat, 2 May 2026 15:25:59 +0700 Subject: [PATCH] fix: run sonar scan in sonar container with Java Co-Authored-By: Claude Sonnet 4.6 --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index a5bb4d5..72948f3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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