Skip to content

Commit daf0e35

Browse files
authored
Merge pull request #117 from infosiftr/better-trigger
Improve triggers to be based on source changes instead of meta job running
2 parents a8f4e77 + ddb68c0 commit daf0e35

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Jenkinsfile.deploy

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ properties([
44
disableResume(),
55
durabilityHint('PERFORMANCE_OPTIMIZED'),
66
pipelineTriggers([
7-
upstream('../meta'),
8-
cron('H H/6 * * *'), // run every few hours whether we "need" it or not
7+
githubPush(),
8+
cron('@daily'), // check periodically, just in case
99
]),
1010
])
1111

Jenkinsfile.trigger

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ properties([
44
disableResume(),
55
durabilityHint('PERFORMANCE_OPTIMIZED'),
66
pipelineTriggers([
7-
upstream(threshold: 'UNSTABLE', upstreamProjects: '../meta'),
7+
githubPush(),
8+
cron('@hourly'), // run hourly whether we "need" it or not
89
]),
910
])
1011

0 commit comments

Comments
 (0)