Skip to content

πŸ“¨ The ultimate agentic social media scheduling tool πŸ€–

Update SonarQube environment configuration to use 'SonarQube-Server' and change token variable to 'SONAR_AUTH_TOKEN'

Enno Gelhaus77b91d4d7c2d
diff --git a/Jenkins/Build.Jenkinsfile b/Jenkins/Build.Jenkinsfile
index cdea710cc..0328b5db0 100644
--- a/Jenkins/Build.Jenkinsfile
+++ b/Jenkins/Build.Jenkinsfile
@@ -51,7 +51,7 @@ pipeline {
// 2. Use withSonarQubeEnv to set up the environment and PATH for sonar-scanner.
// IMPORTANT: Replace 'YourSonarServerName' with the name you configured
// for your SonarQube server instance in Jenkins (Manage Jenkins -> Configure System).
- withSonarQubeEnv(installationName: 'YourSonarServerName') {
+ withSonarQubeEnv(installationName: 'SonarQube-Server') {
// 3. Execute sonar-scanner CLI
sh """
echo "Starting SonarQube Analysis for project version: ${commitShaShort}"
@@ -59,7 +59,7 @@ pipeline {
-Dsonar.projectVersion=${commitShaShort} \\
-Dsonar.sources=. \\
-Dsonar.host.url=\${SONAR_HOST_URL} \\
- -Dsonar.token=\${SONAR_TOKEN}
+ -Dsonar.token=\${SONAR_AUTH_TOKEN}
# Add -Dsonar.projectKey=YourKeyHere if not defined in sonar-project.properties
"""
}