Add Jenkinsfile for CI pipeline

This commit is contained in:
CasualV 2026-05-23 18:10:40 +08:00
parent 9bbc7125ad
commit ee6d251920

48
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,48 @@
pipeline {
agent any
tools {
nodejs 'NodeJS'
}
stages {
stage('Checkout') {
steps {
checkout scm
}
}
stage('Install Dependencies') {
steps {
dir('birthday_web_ui') {
sh 'npm install'
}
}
}
stage('Lint') {
steps {
dir('birthday_web_ui') {
sh 'npm run lint'
}
}
}
stage('Build') {
steps {
dir('birthday_web_ui') {
sh 'npm run build'
}
}
}
}
post {
success {
echo 'Build successful!'
}
failure {
echo 'Build failed!'
}
}
}