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'
|
HARBOR = 'harbor.myriadcara.com'
|
||||||
IMAGE = 'harbor.myriadcara.com/vaishnavi-ecommerce/backend'
|
IMAGE = 'harbor.myriadcara.com/vaishnavi-ecommerce/backend'
|
||||||
SONAR_PROJECT = 'ecommerce'
|
SONAR_PROJECT = 'ecommerce'
|
||||||
VERSION_FILE = '/var/jenkins_home/vaishnavi-backend-version.txt'
|
VERSION_FILE = '/home/jenkins/vaishnavi-backend-version.txt' // ✅ fixed path
|
||||||
}
|
}
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
@@ -33,7 +33,7 @@ pipeline {
|
|||||||
|
|
||||||
stage('SonarQube Scan') {
|
stage('SonarQube Scan') {
|
||||||
steps {
|
steps {
|
||||||
withSonarQubeEnv('SonarQube') { // 'SonarQube' must match Jenkins config name
|
withSonarQubeEnv('SonarQube') {
|
||||||
withCredentials([string(
|
withCredentials([string(
|
||||||
credentialsId: 'sonarqube-token',
|
credentialsId: 'sonarqube-token',
|
||||||
variable: 'SONAR_TOKEN'
|
variable: 'SONAR_TOKEN'
|
||||||
|
|||||||
Reference in New Issue
Block a user