From 8a6d0b210c2496201bae3a115e987b9ef6e94be9 Mon Sep 17 00:00:00 2001 From: xiaozhou233 Date: Sun, 9 Aug 2026 21:14:10 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=20Jenkinsfile=20?= =?UTF-8?q?=E4=BB=A5=E6=94=AF=E6=8C=81=20CI/CD=20=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..3296b82 --- /dev/null +++ b/Jenkinsfile @@ -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' + } + } + } + + } +} \ No newline at end of file