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

REVERTEDfix1+2+3 Jenkinsfile

parent bfe10eac
No related branches found
No related tags found
No related merge requests found
......@@ -51,7 +51,7 @@ pipeline {
scp docker-compose.yml ${APP_VM}:~/healthcare/
"""
// SSH into the App VM and run the deployment commands.
// SSH into the App VM and run the deployment commands. Reverted to remove --no-cache and --force-recreate.
sh """
ssh ${APP_VM} '
echo "Changing directory to ~/healthcare"
......@@ -60,8 +60,8 @@ pipeline {
/usr/bin/docker-compose down || 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 docker-compose up with --build, --no-cache, and --force-recreate..."
/usr/bin/docker-compose -f docker-compose.yml up -d --build --no-cache --force-recreate && echo "Compose up command issued." || echo "Compose up command failed."
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