From 80314380cc7f27bfb929a909fedcc7984d81bef9 Mon Sep 17 00:00:00 2001 From: Ryan Kegel Date: Wed, 10 Dec 2025 15:18:09 -0500 Subject: [PATCH] added jenkins deployment --- Jenkinsfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 21e12e8..4ad1a48 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -36,10 +36,6 @@ pipeline { stage('Deploy') { steps { - echo 'Cleaning up and creating network...' - sh "docker network rm -f ${NETWORK_NAME} || true" - sh "docker network create ${NETWORK_NAME}" - echo 'Stopping and removing old containers...' // 1. Stop and remove the old running containers (if they exist) // The || true prevents the build from failing if the container doesn't exist yet @@ -48,6 +44,11 @@ pipeline { sh "docker stop ${FLASK_CONTAINER_NAME} || true" sh "docker rm ${FLASK_CONTAINER_NAME} || true" + echo 'Cleaning up and creating network...' + sh "docker network rm -f ${NETWORK_NAME} || true" + sh "docker network create ${NETWORK_NAME}" + + echo "Starting new containers named ${VUE_CONTAINER_NAME} and ${FLASK_CONTAINER_NAME}... from images ${FRONTEND_IMAGE} and ${BACKEND_IMAGE}" // 2. Start the newly built images