From 2af7ee1747abaab86b62fc1fc437b8fb7ebcacb2 Mon Sep 17 00:00:00 2001 From: lixogram <168293214+lixogram@users.noreply.github.com> Date: Sat, 18 May 2024 09:52:30 -0700 Subject: [PATCH] Update FinalJenkinsfile --- FinalJenkinsfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/FinalJenkinsfile b/FinalJenkinsfile index f561e5d..2609f41 100644 --- a/FinalJenkinsfile +++ b/FinalJenkinsfile @@ -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/lixogram/php-project/', branch: "master" } } stage('Build docker image'){ steps{ script{ - sh 'docker build -t akshu20791/myprojectnew:v1 .' + sh 'docker build -t lixogram/myprojectnew:v1 .' sh 'docker images' } } @@ -19,14 +19,14 @@ pipeline { steps { withCredentials([usernamePassword(credentialsId: 'dockerhub-pwd', passwordVariable: 'PASS', usernameVariable: 'USER')]) { sh "echo $PASS | docker login -u $USER --password-stdin" - sh 'docker push akshu20791/myprojectnew:v1' + sh 'docker push lixogram/myprojectnew:v1' } } } stage('Deploy') { steps { - sh 'sudo docker run -itd --name My-project-con -p 8089:80 akshu20791/myprojectnew:v1' + sh 'sudo docker run -itd --name My-project-con -p 8089:80 lixogram/myprojectnew:v1' } }