@@ -18,7 +18,6 @@ import (
18
18
"github.com/jenkins-x/jx-helpers/v3/pkg/input/inputfactory"
19
19
"github.com/jenkins-x/jx-helpers/v3/pkg/options"
20
20
"github.com/jenkins-x/jx-logging/v3/pkg/log"
21
- tektonv1beta1 "github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1"
22
21
"sigs.k8s.io/yaml"
23
22
24
23
"github.com/jenkins-x/jx-helpers/v3/pkg/cobras/helper"
@@ -303,7 +302,7 @@ func (o *Options) processTriggers() error {
303
302
return o .displayPipeline (trigger .Path , pipelineName , pipeline )
304
303
}
305
304
306
- func (o * Options ) displayPipeline (path , name string , pipeline * tektonv1beta1 .PipelineRun ) error {
305
+ func (o * Options ) displayPipeline (path , name string , pipeline * pipelinev1 .PipelineRun ) error {
307
306
if o .AddDefaults {
308
307
err := o .addPipelineParameterDefaults (path , pipeline )
309
308
if err != nil {
@@ -389,7 +388,7 @@ func (o *Options) openInEditor(path, editor string) error {
389
388
return nil
390
389
}
391
390
392
- func (o * Options ) addPipelineParameterDefaults (path string , pipeline * tektonv1beta1 .PipelineRun ) error {
391
+ func (o * Options ) addPipelineParameterDefaults (path string , pipeline * pipelinev1 .PipelineRun ) error {
393
392
ps := & pipeline .Spec
394
393
395
394
dscm := & o .DiscoverScm
@@ -453,7 +452,7 @@ func (o *Options) addPipelineParameterDefaults(path string, pipeline *tektonv1be
453
452
for i := range ps .Params {
454
453
pa := & ps .Params [i ]
455
454
if string (pa .Value .Type ) == "" {
456
- pa .Value .Type = tektonv1beta1 .ParamTypeString
455
+ pa .Value .Type = pipelinev1 .ParamTypeString
457
456
}
458
457
if pa .Value .StringVal == "" {
459
458
switch pa .Name {
0 commit comments