From 85f6f181810889b301525dfa4a771d6c9d562612 Mon Sep 17 00:00:00 2001 From: Ionel Andrei Cataon Date: Thu, 12 Feb 2026 15:57:28 +0200 Subject: [PATCH] uppp3 --- project2/jenkinsfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/project2/jenkinsfile b/project2/jenkinsfile index 104ac74..73d3786 100644 --- a/project2/jenkinsfile +++ b/project2/jenkinsfile @@ -17,7 +17,7 @@ pipeline { steps { script { echo "Verificăm sintaxa Python..." - sh 'docker run --rm python:3.9-slim python -m py_compile famousquotes.py' + sh 'docker run --rm -v "$(pwd)":/app -w /app python:3.9-slim python -m py_compile famousquotes.py' } } } @@ -25,7 +25,9 @@ pipeline { stage('Build Docker Image') { steps { script { - sh 'docker build -t quotes-app .' + directory('project2') { + echo "Construim imaginea Docker pentru aplicația de citate..." + sh 'docker build -t quotes-app .' } } }