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() {
|
def executeScanCodeQuality() {
|
||||||
stage('Scan Code Quality') {
|
stage('Scan Code Quality') {
|
||||||
container('node') {
|
container('sonar') {
|
||||||
scanCodeQuality(projectKey: 'tictactoe')
|
scanCodeQuality(projectKey: 'tictactoe')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -40,7 +40,7 @@ def executeBumpChart() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// ── Pipeline ───────────────────────────────────────────────────────
|
// ── Pipeline ───────────────────────────────────────────────────────
|
||||||
podTemplate(yaml: homelabK8sAgent(withTools: true)) {
|
podTemplate(yaml: homelabK8sAgent(withTools: true, withSonar: true)) {
|
||||||
node(POD_LABEL) {
|
node(POD_LABEL) {
|
||||||
withEnv(['DOCKER_HOST=tcp://localhost:2375']) {
|
withEnv(['DOCKER_HOST=tcp://localhost:2375']) {
|
||||||
checkout scm
|
checkout scm
|
||||||
|
|||||||
Reference in New Issue
Block a user