Skip to content
This repository was archived by the owner on Dec 20, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ public class PipelineCacheConfigurationProperties {
/**
* If false, query front50 for all pipelines. If true, query front50 for only enabled pipelines
* with enabled triggers with types that echo requires.
*
* <p>DO NOT enable this if using cron/jenkins triggers. There's a known bug with this which
* impacts some downsream pipeline triggers. Pipeline Templated triggers ALSO break with this set
* on. Once tests & fixes are applied can set default.
*/
private boolean filterFront50Pipelines = true;
private boolean filterFront50Pipelines = false;
}
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,11 @@ class PipelineCacheSpec extends Specification implements RetrofitStubs {
def pipeline = Pipeline.builder().application('application').name('Pipeline').id('P1').build()

def initialLoad = []
front50.getPipelines(true, true, supportedTriggers) >> Calls.response(initialLoad) >> { throw unavailable() } >> Calls.response([pipelineMap])
if (pipelineCacheConfigurationProperties.isFilterFront50Pipelines()) {
front50.getPipelines(true, true, supportedTriggers) >> Calls.response(initialLoad) >> { throw unavailable() } >> Calls.response([pipelineMap])
} else {
front50.getPipelines() >> Calls.response(initialLoad) >> { throw unavailable() } >> Calls.response([pipelineMap])
}
pipelineCache.start()

expect: 'null pipelines when we have not polled yet'
Expand Down