Fix Jenkinsfile syntax (clean comments)
This commit is contained in:
parent
a2e8df4850
commit
63a97ba4e2
16
Jenkinsfile
vendored
16
Jenkinsfile
vendored
|
|
@ -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
|
||||
'''
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user