Skip to content
Snippets Groups Projects
Commit 70e43abc authored by Burhan Akbar's avatar Burhan Akbar
Browse files

Adjusting Jenkinsfile fix1...

parent 2b2d6a9e
Branches
No related tags found
No related merge requests found
......@@ -57,9 +57,13 @@ pipeline {
echo "Changing directory to ~/healthcare"
cd ~/healthcare &&
echo "Attempting docker-compose down..."
/usr/bin/docker-compose down || echo "Compose down failed or had nothing to do."
# Added --remove-orphans just in case, though likely not needed here
/usr/bin/docker-compose down --remove-orphans || echo "Compose down failed or had nothing to do."
echo "Attempting docker system prune..."
docker system prune -f && echo "Prune successful." || echo "Prune failed."
echo "Attempting to remove existing application image..."
# Force remove the specific image to bypass cache
docker rmi healthcare_healthcare_01 || echo "Image removal failed or image not found."
echo "Attempting docker-compose up with --build..."
/usr/bin/docker-compose -f docker-compose.yml up -d --build && echo "Compose up command issued." || echo "Compose up command failed."
'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment