File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
java-components/driver/src/main/java/com/redhat/hacbs/driver Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -64,9 +64,6 @@ public class Driver {
64
64
@ ConfigProperty (name = "konflux-build-driver.pipeline-resolver" )
65
65
String resolverTarget ;
66
66
67
- @ ConfigProperty (name = "build-driver.pipeline" )
68
- Optional <String > customPipeline ;
69
-
70
67
public BuildResponse create (BuildRequest buildRequest ) {
71
68
IndyTokenResponseDTO tokenResponseDTO = new IndyTokenResponseDTO (accessToken );
72
69
@@ -98,12 +95,8 @@ public BuildResponse create(BuildRequest buildRequest) {
98
95
var tc = client .adapt (TektonClient .class );
99
96
// Various ways to create the initial PipelineRun object. We can use an objectmapper,
100
97
// client.getKubernetesSerialization() or the load calls on the Fabric8 objects.
101
- if (customPipeline .isEmpty ()) {
102
- pipelineRun = tc .v1 ().pipelineRuns ()
98
+ pipelineRun = tc .v1 ().pipelineRuns ()
103
99
.load (IOUtils .resourceToURL ("pipeline.yaml" , Thread .currentThread ().getContextClassLoader ())).item ();
104
- } else {
105
- pipelineRun = tc .v1 ().pipelineRuns ().load (Path .of (customPipeline .get ()).toFile ()).item ();
106
- }
107
100
} catch (IOException e ) {
108
101
throw new RuntimeException (e );
109
102
}
You can’t perform that action at this time.
0 commit comments