Fix Jenkinsfile syntax (clean comments)

This commit is contained in:
soufiane 2025-11-04 18:52:44 +01:00
parent a2e8df4850
commit 63a97ba4e2

16
Jenkinsfile vendored
View File

@ -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 lapplication Next.js..."
sh 'npm run build'
sh '''
npm ci
npm run build
'''
}
}