Update Jenkinsfile
Some checks failed
ecommerce-backend/pipeline/head There was a failure building this commit
Some checks failed
ecommerce-backend/pipeline/head There was a failure building this commit
This commit is contained in:
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user