Browse Source

commit Jenkinsfile changes

placidenduwayo 1 year ago
parent
commit
7f6a4f6c94
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      Jenkinsfile

+ 4
- 0
Jenkinsfile View File

@@ -1,5 +1,9 @@
1
+CRON_SETTINGS = BRANCH_NAME == "master" ? '''H * * *'''
1 2
 pipeline {
2 3
     agent any //we tell jenkins to use any available agent
4
+    triggers {
5
+        cron(CRON_SETTINGS)
6
+    }
3 7
     tools {
4 8
         maven 'Maven'
5 9
         jdk 'Java-17'

Powered by TurnKey Linux.