File tree 2 files changed +5
-1
lines changed
pkg/reconciler/pipelinerun
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -296,6 +296,8 @@ spec:
296
296
value: $(context.pipeline.name)
297
297
- name: contextRetriesParam
298
298
value: $(context.pipelineTask.retries)
299
+ - name: param-not-found
300
+ value: $(params.notfound)
299
301
retries: 5
300
302
taskRef:
301
303
name: unit-test-task
@@ -385,6 +387,8 @@ spec:
385
387
value: test-pipeline
386
388
- name: contextRetriesParam
387
389
value: "5"
390
+ - name: param-not-found
391
+ value: $(params.notfound)
388
392
retries: 5
389
393
serviceAccountName: test-sa
390
394
taskRef:
Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ func filterMatrixContextVar(params v1.Params) v1.Params {
160
160
// tasks.<pipelineTaskName>.matrix.length
161
161
// tasks.<pipelineTaskName>.matrix.<resultName>.length
162
162
subExpressions := strings .Split (expression , "." )
163
- if subExpressions [2 ] == "matrix" && subExpressions [len (subExpressions )- 1 ] == "length" {
163
+ if len ( subExpressions ) >= 4 && subExpressions [2 ] == "matrix" && subExpressions [len (subExpressions )- 1 ] == "length" {
164
164
filteredParams = append (filteredParams , param )
165
165
}
166
166
}
You can’t perform that action at this time.
0 commit comments