fix: run sonar scan in sonar container with Java
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user