Browse Source

add jenkinsfile

huqi 5 years ago
parent
commit
4cc890190c
1 changed files with 18 additions and 2 deletions
  1. 18 2
      jenkinsfile

+ 18 - 2
jenkinsfile

@@ -1,9 +1,25 @@
 pipeline {
     agent {label: "132"}
     stages {
-        stage('build') {
+        stage('preperation') {
             steps {
-                bat 'npm --v'
+                sh 'npm install'
+                sh 'npm run preperation'
+            }
+        }
+        stage('build server') {
+            steps {
+                sh 'npm run build_server'
+            }
+        }
+        stage('build web') {
+            steps {
+                sh 'npm run build_web'
+            }
+        }
+        stage('deploy') {
+            steps {
+                sh 'npm run deploy'
             }
         }
     }