Update Jenkinsfile
Some checks failed
ecommerce-backend/pipeline/head There was a failure building this commit

This commit is contained in:
2026-03-12 04:37:14 +00:00
parent 08e9d3db3c
commit 8961f0ba1c

4
Jenkinsfile vendored
View File

@@ -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'