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

Powered by TurnKey Linux.