diff --git a/Jenkinsfile b/Jenkinsfile index bf4b140..a03b421 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,7 +5,7 @@ pipeline { HARBOR = 'harbor.myriadcara.com' IMAGE = 'harbor.myriadcara.com/vaishnavi-ecommerce/backend' SONAR_PROJECT = 'ecommerce' - VERSION_FILE = '/var/jenkins_home/vaishnavi-backend-version.txt' + VERSION_FILE = '/home/jenkins/vaishnavi-backend-version.txt' // ✅ fixed path } stages { @@ -33,7 +33,7 @@ pipeline { stage('SonarQube Scan') { steps { - withSonarQubeEnv('SonarQube') { // 'SonarQube' must match Jenkins config name + withSonarQubeEnv('SonarQube') { withCredentials([string( credentialsId: 'sonarqube-token', variable: 'SONAR_TOKEN'