Explorar o código

add jenkinsfile

huqi %!s(int64=6) %!d(string=hai) anos
pai
achega
4cc890190c
Modificáronse 1 ficheiros con 18 adicións e 2 borrados
  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'
             }
         }
     }