Skip to content

Commit c4b9293

Browse files
committed
Add monthly cron job for master branch
QA-2768
1 parent cce00e1 commit c4b9293

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Jenkinsfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/usr/bin/env groovy
22

3+
def schedule = env.BRANCH_NAME.contains('master') ? '@monthly' : env.BRANCH_NAME == 'develop' ? '@midnight' : ''
4+
35
pipeline {
46

57
agent any
@@ -19,7 +21,7 @@ pipeline {
1921
}
2022

2123
triggers {
22-
cron(env.BRANCH_NAME == 'develop' ? '@midnight' : '')
24+
cron(schedule)
2325
}
2426

2527
tools {

0 commit comments

Comments
 (0)