feat: 添加 Jenkinsfile 以支持 CI/CD 流程

This commit is contained in:
xiaozhou233 committed 2026-08-09 21:14:10 +08:00
1 parent 7ebbdbcb5f
commit 8a6d0b210c
1 file changed
+38
Vendored
+38
View File
@@ -0,0 +1,38 @@
pipeline {
agent any
tools {
nodejs 'nodejs'
}
options {
timestamps()
disableConcurrentBuilds()
}
stages {
stage('Checkout') {
steps {
checkout scm
}
}
stage('Install') {
steps {
dir('dashboard') {
sh 'npm ci'
}
}
}
stage('Build') {
steps {
dir('dashboard') {
sh 'npm run build'
}
}
}
}
}