File tree Expand file tree Collapse file tree
src/main/java/io/forgeai/jenkins/steps Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44
55[ ![ CI] ( https://github.com/forgeai-oss/forgeai-pipeline-intelligence/actions/workflows/ci.yml/badge.svg )] ( https://github.com/forgeai-oss/forgeai-pipeline-intelligence/actions/workflows/ci.yml )
66[ ![ License] ( https://img.shields.io/badge/License-MIT-blue.svg )] ( LICENSE )
7- [ ![ Jenkins Plugin] ( https://img.shields.io/badge/Jenkins-2.426 .3%2B-blue.svg )] ( https://www.jenkins.io/ )
7+ [ ![ Jenkins Plugin] ( https://img.shields.io/badge/Jenkins-2.528 .3%2B-blue.svg )] ( https://www.jenkins.io/ )
88[ ![ Java] ( https://img.shields.io/badge/Java-17%2B-orange.svg )] ( https://adoptium.net )
99
1010---
@@ -365,7 +365,7 @@ forgeai-pipeline-intelligence/
365365
366366| Requirement | Minimum |
367367| ---| ---|
368- | Jenkins | 2.426 .3 LTS |
368+ | Jenkins | 2.528 .3 LTS |
369369| Java (runtime) | 17 |
370370| Java (build) | 17 (tested through 21) |
371371| Maven (build) | 3.9 |
Original file line number Diff line number Diff line change 99import io .forgeai .jenkins .analyzers .*;
1010import io .forgeai .jenkins .config .ForgeAIGlobalConfiguration ;
1111import io .forgeai .jenkins .llm .LLMProvider ;
12- import io . forgeai . jenkins . llm . LLMProviderFactory ;
12+
1313import io .forgeai .jenkins .reports .AnalysisResult ;
1414import org .jenkinsci .plugins .workflow .steps .*;
1515import org .kohsuke .stapler .DataBoundConstructor ;
@@ -62,7 +62,7 @@ private static class Execution extends SynchronousNonBlockingStepExecution<Map<S
6262 protected Map <String , Object > run () throws Exception {
6363 PrintStream log = getContext ().get (TaskListener .class ).getLogger ();
6464 ForgeAIGlobalConfiguration cfg = ForgeAIGlobalConfiguration .get ();
65- LLMProvider llm = LLMProviderFactory . create ( cfg );
65+ LLMProvider llm = cfg . getProvider ( );
6666 int maxTokens = cfg .getMaxTokens ();
6767
6868 BaseAnalyzer a = switch (step .getAnalyzer ()) {
Original file line number Diff line number Diff line change 99import io .forgeai .jenkins .analyzers .*;
1010import io .forgeai .jenkins .config .ForgeAIGlobalConfiguration ;
1111import io .forgeai .jenkins .llm .LLMProvider ;
12- import io . forgeai . jenkins . llm . LLMProviderFactory ;
12+
1313import io .forgeai .jenkins .reports .AnalysisResult ;
1414import io .forgeai .jenkins .reports .ForgeAIReportGenerator ;
1515import org .jenkinsci .plugins .workflow .steps .*;
@@ -87,7 +87,7 @@ protected Map<String, Object> run() throws Exception {
8787 PrintStream log = listener .getLogger ();
8888
8989 ForgeAIGlobalConfiguration cfg = ForgeAIGlobalConfiguration .get ();
90- LLMProvider llm = LLMProviderFactory . create ( cfg );
90+ LLMProvider llm = cfg . getProvider ( );
9191 int maxTokens = cfg .getMaxTokens ();
9292
9393 log .println ("╔══════════════════════════════════════════════════╗" );
You can’t perform that action at this time.
0 commit comments