From 63a97ba4e27fa577ecfd7a39a560917ab47850de Mon Sep 17 00:00:00 2001 From: soufiane Date: Tue, 4 Nov 2025 18:52:44 +0100 Subject: [PATCH] Fix Jenkinsfile syntax (clean comments) --- Jenkinsfile | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 94625d8..d853fb4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,7 +1,4 @@ pipeline { - - - agent any parameters { @@ -39,8 +36,6 @@ pipeline { 🏷️ Tag Docker = ${env.TAG} 📂 Chemin de déploiement = ${env.DEPLOY_PATH} """ - - sh "ls -l ${env.DEPLOY_PATH} || echo '⚠️ Dossier non accessible depuis Jenkins'" } } } @@ -70,9 +65,18 @@ pipeline { } stage('Build Frontend') { + agent { + docker { + image 'node:20' + args '-u root' + } + } steps { echo "⚙️ Build de l’application Next.js..." - sh 'npm run build' + sh ''' + npm ci + npm run build + ''' } }