Skip to content
This repository was archived by the owner on Dec 20, 2025. It is now read-only.

Commit 38c2df6

Browse files
fix(pipelinetriggers): turn off pipeline filtering by default (#1503) (#1504)
until bugs are fixed For reference, #1416 enabled pipeline filtering by default. (cherry picked from commit c0a7c9e) Co-authored-by: Jason <jason.mcintosh@harness.io>
1 parent 7de326a commit 38c2df6

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

echo-pipelinetriggers/src/main/java/com/netflix/spinnaker/echo/pipelinetriggers/PipelineCacheConfigurationProperties.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ public class PipelineCacheConfigurationProperties {
2828
/**
2929
* If false, query front50 for all pipelines. If true, query front50 for only enabled pipelines
3030
* with enabled triggers with types that echo requires.
31+
*
32+
* <p>DO NOT enable this if using cron/jenkins triggers. There's a known bug with this which
33+
* impacts some downsream pipeline triggers. Pipeline Templated triggers ALSO break with this set
34+
* on. Once tests & fixes are applied can set default.
3135
*/
32-
private boolean filterFront50Pipelines = true;
36+
private boolean filterFront50Pipelines = false;
3337
}

echo-pipelinetriggers/src/test/groovy/com/netflix/spinnaker/echo/pipelinetriggers/PipelineCacheSpec.groovy

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,11 @@ class PipelineCacheSpec extends Specification implements RetrofitStubs {
7272
def pipeline = Pipeline.builder().application('application').name('Pipeline').id('P1').build()
7373

7474
def initialLoad = []
75-
front50.getPipelines(true, true, supportedTriggers) >> Calls.response(initialLoad) >> { throw unavailable() } >> Calls.response([pipelineMap])
75+
if (pipelineCacheConfigurationProperties.isFilterFront50Pipelines()) {
76+
front50.getPipelines(true, true, supportedTriggers) >> Calls.response(initialLoad) >> { throw unavailable() } >> Calls.response([pipelineMap])
77+
} else {
78+
front50.getPipelines() >> Calls.response(initialLoad) >> { throw unavailable() } >> Calls.response([pipelineMap])
79+
}
7680
pipelineCache.start()
7781

7882
expect: 'null pipelines when we have not polled yet'

0 commit comments

Comments
 (0)