فهرست منبع

only build master periodically

Joe Green 9 سال پیش
والد
کامیت
2c4d01ebde
1فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 3 1
      services/web/Jenkinsfile

+ 3 - 1
services/web/Jenkinsfile

@@ -1,3 +1,5 @@
+String cron_string = BRANCH_NAME == "master" ? "@daily" : ""
+
 pipeline {
   
   agent any
@@ -8,7 +10,7 @@ pipeline {
   
   triggers {
     pollSCM('* * * * *')
-    cron('@daily')
+    cron(cron_string)
   }
   
   stages {