Skip to content

Commit 4181a5a

Browse files
committed
fix(sonar): new server
1 parent 02fb6f0 commit 4181a5a

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@ APP=blog
22
VERSION?=latest
33
BUILD?=$(shell /bin/date +%Y%m%d%H%M%S)
44
# linux/amd64, linux/arm64
5-
PLATFORM?=linux/arm64
5+
PLATFORM?=linux/arm64
66
REGISTRY?=loneexile
77

8-
# tcp://buildkitd.buildkit.svc.cluster.local:1234
98
ximage:
109
docker buildx create --name imagebuilder --driver=remote tcp://buildkitd:1234 --bootstrap --use;
1110
cat ~/.docker/buildx/instances/imagebuilder;

deploy/config/Jenkinsfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
pipeline {
22
environment {
33
CONTAINER_REGISTRY_CREDENTIALS = credentials('docker')
4-
SONARQUBE_SCANNER_HOME = tool 'sonar-scanner'
5-
SONAR_HOST_URL = 'https://sonar.voidbox.io/'
6-
SONAR_TOKEN = credentials('sonar-token')
4+
SONARQUBE_SCANNER_HOME = tool 'sonar-scanner' // NOTE: need to match the name of the SonarQube installer in Tools
75
}
86

97
agent {
@@ -45,7 +43,7 @@ pipeline {
4543
stage('SonarQube Analysis') {
4644
steps {
4745
container('jnlp') {
48-
withSonarQubeEnv('sonar') {
46+
withSonarQubeEnv('sonar') { // NOTE: need to match the name of the SonarQube server configuration in Jenkins
4947
sh "${env.SONARQUBE_SCANNER_HOME}/bin/sonar-scanner -Dproject.settings=deploy/config/sonar-project.properties"
5048
}
5149
}

0 commit comments

Comments
 (0)