From da92bc04d1d0ebb8145d8009d63cb84670e6b228 Mon Sep 17 00:00:00 2001 From: Anupong Hompan Date: Tue, 28 Oct 2025 20:35:30 +0700 Subject: [PATCH] JK --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index cdc068b..ef18e3d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -159,7 +159,7 @@ pipeline { # Ensure scanner is available and PATH includes global tools dotnet tool update --global dotnet-sonarscanner - export PATH="$PATH:/root/.dotnet/tools" + export PATH="$PATH:${HOME}/.dotnet/tools" # dotnet sonarscanner begin \ # /k:"${SONAR_PROJECT_KEY}" \ @@ -193,7 +193,7 @@ pipeline { // Close the Sonar analysis and push data to the server. withSonarQubeEnv('SonarQube') { sh '''#!/bin/bash -e - # dotnet sonarscanner end /d:sonar.login="${SONAR_AUTH_TOKEN}" + export PATH="$PATH:${HOME}/.dotnet/tools" dotnet sonarscanner end ''' }