Przeglądaj źródła

01yvan-ext.groovy
02yvan-ext-mobile.groovy

lizw 2 lat temu
rodzic
commit
c325064c9e
3 zmienionych plików z 61 dodań i 0 usunięć
  1. 1 0
      .gitignore
  2. 30 0
      00base/01yvan-ext.groovy
  3. 30 0
      00base/02yvan-ext-mobile.groovy

+ 1 - 0
.gitignore

@@ -70,3 +70,4 @@ target
 pom.xml.versionsBackup
 build/
 node_modules
+lib

+ 30 - 0
00base/01yvan-ext.groovy

@@ -0,0 +1,30 @@
+//file:noinspection ALL
+pipeline {
+    agent any
+
+    environment {
+        projectName = 'yvan-ext'
+    }
+
+    stages {
+        stage('#检查环境') {
+            steps {
+                sh """
+                    node -v
+                    npm -v
+                    yarn -v
+                """
+            }
+        }
+
+        stage('#编译项目') {
+            steps {
+                sh """
+                    wget -N http://git.yvanui.com/lizhiwei/jztd-deploy/raw/master/00base/01yvan-ext.sh
+                    chmod +x 01yvan-ext.sh
+                    ./01yvan-ext.sh deploy
+                """
+            }
+        }
+    }
+}

+ 30 - 0
00base/02yvan-ext-mobile.groovy

@@ -0,0 +1,30 @@
+//file:noinspection ALL
+pipeline {
+    agent any
+
+    environment {
+        projectName = 'yvan-ext-mobile'
+    }
+
+    stages {
+        stage('#检查环境') {
+            steps {
+                sh """
+                    node -v
+                    npm -v
+                    yarn -v
+                """
+            }
+        }
+
+        stage('#编译项目') {
+            steps {
+                sh """
+                    wget -N http://git.yvanui.com/lizhiwei/jztd-deploy/raw/master/00base/02yvan-ext-mobile.sh
+                    chmod +x 02yvan-ext-mobile.sh
+                    ./02yvan-ext-mobile.sh deploy
+                """
+            }
+        }
+    }
+}