Browse Source

Add jenkins back

shedaniel 5 năm trước cách đây
mục cha
commit
eede1d93d2
1 tập tin đã thay đổi với 19 bổ sung0 xóa
  1. 19 0
      JenkinsD

+ 19 - 0
JenkinsD

@@ -0,0 +1,19 @@
+pipeline {
+   agent any
+   stages {
+
+      stage ('Build') {
+         when {
+            expression { env.BRANCH_NAME == '3.x' || env.BRANCH_NAME == '3.x-unstable' }
+         }
+         steps {
+            sh "rm -rf build/libs/"
+            sh "chmod +x gradlew"
+            sh "./gradlew clean --stacktrace"
+            sh "./gradlew build publish --refresh-dependencies --stacktrace"
+
+            archiveArtifacts artifacts: '**/build/libs/*.jar', fingerprint: true
+         }
+      }
+   }
+}