diff --git a/Jenkins-Pipeline-Code/Jenkinsfile-Backend b/Jenkins-Pipeline-Code/Jenkinsfile-Backend index b0826fb70..b3676e7f3 100644 --- a/Jenkins-Pipeline-Code/Jenkinsfile-Backend +++ b/Jenkins-Pipeline-Code/Jenkinsfile-Backend @@ -8,7 +8,7 @@ pipeline { SCANNER_HOME=tool 'sonar-scanner' AWS_ACCOUNT_ID = credentials('ACCOUNT_ID') AWS_ECR_REPO_NAME = credentials('ECR_REPO2') - AWS_DEFAULT_REGION = 'us-east-1' + AWS_DEFAULT_REGION = 'ap-south-1' REPOSITORY_URI = "${AWS_ACCOUNT_ID}.dkr.ecr.${AWS_DEFAULT_REGION}.amazonaws.com/" } stages { @@ -19,7 +19,7 @@ pipeline { } stage('Checkout from Git') { steps { - git credentialsId: 'GITHUB', url: 'https://github.com/AmanPathak-DevOps/End-to-End-Kubernetes-Three-Tier-DevSecOps-Project.git' + git credentialsId: 'GITHUB', url: 'https://github.com/sairam600582/End-to-End-Kubernetes-Three-Tier-DevSecOps-Project.git' } } stage('Sonarqube Analysis') { @@ -88,14 +88,14 @@ pipeline { stage('Update Deployment file') { environment { GIT_REPO_NAME = "End-to-End-Kubernetes-Three-Tier-DevSecOps-Project" - GIT_USER_NAME = "AmanPathak-DevOps" + GIT_USER_NAME = "sairam600582" } steps { dir('Kubernetes-Manifests-file/Backend') { withCredentials([string(credentialsId: 'github', variable: 'GITHUB_TOKEN')]) { sh ''' - git config user.email "aman07pathak@gmail.com" - git config user.name "AmanPathak-DevOps" + git config user.email "sairam143p@gmail.com" + git config user.name "sairam600582" BUILD_NUMBER=${BUILD_NUMBER} echo $BUILD_NUMBER imageTag=$(grep -oP '(?<=backend:)[^ ]+' deployment.yaml) @@ -110,4 +110,4 @@ pipeline { } } } -} \ No newline at end of file +}