From 61897d914db05ba6da0b4dd740d206d64dfd50ed Mon Sep 17 00:00:00 2001 From: greenamber676 Date: Thu, 9 Jan 2025 20:52:28 -0500 Subject: [PATCH] added full path for podman compose file --- Jenkinsfile | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index d245303..2ad2ef4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -37,7 +37,10 @@ pipeline { steps { script { // Run tests using Docker Compose - sh "podman-compose -f '/home/v/projects/p00003/podman-compose.yml' --dry-run up" + sh """ + #!/bin/bash + podman-compose -f /home/v/projects/p00003/podman-compose-yml --dry-run up + """ } } } @@ -46,7 +49,10 @@ pipeline { steps { script { // Deploy using Docker Compose - sh "podman-compose -f ${DOCKER_COMPOSE_FILE} up -d" + sh """ + #!/bin/bash + podman-compose -f /home/v/projects/p00003/podman-compose-yml up -d + """ } } } @@ -55,7 +61,10 @@ pipeline { post { always { // Clean up Docker containers and images - sh 'podman-compose -f ${DOCKER_COMPOSE_FILE} down' + sh """ + #!/bin/bash + podman-compose -f /home/v/projects/p00003/podman-compose-yml --dry-run up + """ } } } \ No newline at end of file