-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
33 lines (28 loc) · 889 Bytes
/
Jenkinsfile
File metadata and controls
33 lines (28 loc) · 889 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
pipeline {
agent any
stages {
stage('Checkout') {
steps {
git branch: 'main', url: 'https://github.com/merahsamia/WebSite35.git'
}
}
stage('Install Dependencies') {
steps {
bat 'composer install --no-dev --optimize-autoloader' // Windows : Installer les dépendances PHP
bat 'npm install' // Windows : Installer les dépendances Node.js
}
}
stage('Build Frontend') {
steps {
bat 'npm run production' // Windows : Compiler les fichiers Vue.js
}
}
stage('Optimize Laravel') {
steps {
bat 'php artisan cache:clear'
bat 'php artisan config:cache'
bat 'php artisan route:cache'
}
}
}
}