File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
plugin/src/main/java/org/jenkinsci/plugins/workflow/cps Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 4848import java .util .Collection ;
4949import java .util .Collections ;
5050import java .util .List ;
51+ import java .util .stream .Collectors ;
52+
5153import jenkins .model .Jenkins ;
5254import jenkins .scm .api .SCMFileSystem ;
5355import jenkins .security .HMACConfidentialKey ;
@@ -218,7 +220,8 @@ private String getFilePathSuffix() {
218220 public Collection <? extends SCMDescriptor <?>> getApplicableDescriptors () {
219221 StaplerRequest req = Stapler .getCurrentRequest ();
220222 Job <?,?> job = req != null ? req .findAncestorObject (Job .class ) : null ;
221- return SCM ._for (job );
223+ return SCM ._for (job ).stream ().filter (d -> !"org.jenkinsci.plugins.multiplescms.MultiSCM" .equals (d .getId ())).collect (Collectors .toList ());
224+
222225 }
223226
224227 // TODO doCheckLightweight impossible to write even though we have SCMFileSystem.supports(SCM), because form validation cannot pass the SCM object
You can’t perform that action at this time.
0 commit comments