-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: mbwhite <[email protected]>
- Loading branch information
Showing
14 changed files
with
96 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
--- | ||
apiVersion: tekton.dev/v1 | ||
kind: Task | ||
metadata: | ||
name: cleanup | ||
spec: | ||
params: | ||
- name: taskexample | ||
steps: | ||
- name: ls-build-sources | ||
command: ["ls", "-ltr", "/workspace/source/$(params.taskexample)"] | ||
--- | ||
apiVersion: tekton.dev/v1 | ||
kind: Task | ||
metadata: | ||
name: notification | ||
spec: | ||
steps: [] | ||
--- | ||
apiVersion: tekton.dev/v1 | ||
kind: Pipeline | ||
metadata: | ||
name: build-deploy-cleaup-pipeline | ||
spec: | ||
params: | ||
- name: finallyparam | ||
- name: really-unused | ||
workspaces: | ||
- name: shared-workspace | ||
tasks: [] | ||
|
||
finally: | ||
- name: cleanup | ||
displayName: "Notification from $(params.notdefined)" | ||
taskRef: | ||
name: cleanup | ||
params: | ||
- name: unrequiredparam | ||
value: "blank" | ||
- name: taskexample | ||
value: $(params.finallyparam) | ||
- name: taskexample | ||
value: $(params.undefined) | ||
- name: "???_" | ||
value: wibble | ||
workspaces: | ||
- name: shared-workspace | ||
workspace: shared-workspace | ||
- name: notification-using-context-variable | ||
displayName: "Notification from $(params.finallyparam)" | ||
taskRef: | ||
name: notification | ||
workspaces: | ||
- name: shared-workspace | ||
workspace: unknown-workspace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[{"message":"Duplicate param 'taskexample'","rule":"no-duplicate-param","level":"error","path":"./regression-tests/general/finally.yaml","loc":{"range":[814,825,826],"startLine":42,"startColumn":17,"endLine":42,"endColumn":28}},{"message":"Pipeline 'build-deploy-cleaup-pipeline' references task 'cleanup' (as 'cleanup'), and supplies parameter 'unrequiredparam' to it, but it's not a valid parameter","rule":"no-extra-param","level":"error","path":"./regression-tests/general/finally.yaml","loc":{"range":[683,730,730],"startLine":38,"startColumn":11,"endLine":40,"endColumn":1}},{"message":"Pipeline 'build-deploy-cleaup-pipeline' references task 'cleanup' (as 'cleanup'), and supplies parameter '???_' to it, but it's not a valid parameter","rule":"no-extra-param","level":"error","path":"./regression-tests/general/finally.yaml","loc":{"range":[873,910,910],"startLine":44,"startColumn":11,"endLine":46,"endColumn":1}},{"message":"Pipeline 'build-deploy-cleaup-pipeline' provides workspace 'unknown-workspace' for 'shared-workspace' for Task 'notification-using-context-variable', but 'unknown-workspace' doesn't exists in 'build-deploy-cleaup-pipeline'","rule":"no-missing-workspace","level":"error","path":"./regression-tests/general/finally.yaml","loc":{"range":[1243,1260,1269],"startLine":55,"startColumn":22,"endLine":55,"endColumn":39}},{"message":"Undefined param 'notdefined' at .spec.finally[0].displayName in 'build-deploy-cleaup-pipeline'","rule":"no-undefined-param","level":"error","path":"./regression-tests/general/finally.yaml","loc":{"range":[581,621,622],"startLine":34,"startColumn":20,"endLine":34,"endColumn":60}},{"message":"Undefined param 'undefined' at .spec.finally[0].params[2].value in 'build-deploy-cleaup-pipeline'","rule":"no-undefined-param","level":"error","path":"./regression-tests/general/finally.yaml","loc":{"range":[843,862,863],"startLine":43,"startColumn":18,"endLine":43,"endColumn":37}},{"message":"Pipeline 'build-deploy-cleaup-pipeline' defines parameter 'really-unused', but it's not used anywhere in the spec","rule":"no-unused-param","level":"warning","path":"./regression-tests/general/finally.yaml","loc":{"range":[447,467,467],"startLine":27,"startColumn":7,"endLine":28,"endColumn":1}},{"message":"Invalid name for '???_' at .spec.finally[0].params[3].name in 'build-deploy-cleaup-pipeline'. Names should be in lowercase, alphanumeric, kebab-case format.","rule":"prefer-kebab-case","level":"warning","path":"./regression-tests/general/finally.yaml","loc":{"range":[879,885,886],"startLine":44,"startColumn":17,"endLine":44,"endColumn":23}}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters