From b93eb848eace853d91d01f2bb5956b7345a2e31e Mon Sep 17 00:00:00 2001 From: Ggoud2023 Date: Thu, 24 Jul 2025 20:43:44 +0530 Subject: [PATCH 1/3] Update Jenkinsfile --- Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 72ba80b..52d1d3f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,14 +3,14 @@ pipeline { stages{ stage('git cloned'){ steps{ - git url:'https://github.com/akshu20791/php-project/', branch: "master" + git url: 'https://github.com/Ggoud2023/php-project/', branch: "master" } } stage('Build docker image'){ steps{ script{ - sh 'docker build -t akshu20791/akshatnewimg6july:v1 .' + sh 'docker build -t gayatrigoud20/newimg6july:v1 .' sh 'docker images' } } @@ -19,7 +19,7 @@ pipeline { steps { withCredentials([usernamePassword(credentialsId: 'dockerhub-pwd', passwordVariable: 'PASS', usernameVariable: 'USER')]) { sh "echo $PASS | docker login -u $USER --password-stdin" - sh 'docker push akshu20791/akshatnewimg6july:v1' + sh 'docker push gayatrigoud20/newimg6july:v1' } } } From a9641ac806c5b2cf1cea95f635c681b7a9b103a2 Mon Sep 17 00:00:00 2001 From: Ggoud2023 Date: Thu, 24 Jul 2025 20:51:55 +0530 Subject: [PATCH 2/3] Update Jenkinsfile --- Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 52d1d3f..c3aea07 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -28,12 +28,12 @@ pipeline { steps { script { def dockerrm = 'sudo docker rm -f My-first-containe2211 || true' - def dockerCmd = 'sudo docker run -itd --name My-first-containe2211 -p 8083:80 akshu20791/akshatnewimg6july:v1' + def dockerCmd = 'sudo docker run -itd --name My-first-containe2211 -p 8083:80 gayatrigoud20/newimg6july:v1' sshagent(['sshkeypair']) { //chnage the private ip in below code // sh "docker run -itd --name My-first-containe2111 -p 8083:80 akshu20791/2febimg:v1" - sh "ssh -o StrictHostKeyChecking=no ubuntu@172.31.17.188 ${dockerrm}" - sh "ssh -o StrictHostKeyChecking=no ubuntu@172.31.17.188 ${dockerCmd}" + sh "ssh -o StrictHostKeyChecking=no ubuntu@172.31.35.168 ${dockerrm}" + sh "ssh -o StrictHostKeyChecking=no ubuntu@172.31.35.168 ${dockerCmd}" } } } From ff026e860fc035d3dd74fa1d78f86fe0c8e0d7b2 Mon Sep 17 00:00:00 2001 From: Ggoud2023 Date: Thu, 24 Jul 2025 22:58:53 +0530 Subject: [PATCH 3/3] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index c3aea07..f556254 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,7 +3,7 @@ pipeline { stages{ stage('git cloned'){ steps{ - git url: 'https://github.com/Ggoud2023/php-project/', branch: "master" + git url: 'https://github.com/Ggoud2023/php-project.git/', branch: "master" } }