Skip to content

Commit

Permalink
Update Jenkinsfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Divya4242 authored May 15, 2024
1 parent 7cd0ac7 commit 4c1cd51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ pipeline {
sudo rm -r /var/www/build/
sudo mv build/ /var/www/
cd
docker rmi -f divyapatel42/jenkins-backend-project:nodebackend || true
docker rmi -f divyapatel42/ecommerce-webapp:backendjenkins || true
docker rm -f \$(docker ps -q --filter "publish=5000/tcp")
docker run -d -p 5000:5000 divyapatel42/jenkins-backend-project:nodebackend
docker run -d -p 5000:5000 divyapatel42/ecommerce-webapp:backendjenkins
"""
// SSH into EC2 instance and pull Docker image
sshagent(['ec2-ssh']) {
Expand Down

0 comments on commit 4c1cd51

Please sign in to comment.