Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP - implementing pipeline level finally #2651

Closed

Commits on May 21, 2020

  1. pipeline level finally - implementation

    We can now specify a list of tasks needs to be executed just before
    pipeline exits (either after finishing all non-final tasks successfully or after
    a single failure)
    
    Most useful for tasks such as report test results, cleanup cluster resources, etc
    
    ```
    apiVersion: tekton.dev/v1beta1
    kind: Pipeline
    metadata:
      name: pipeline-with-final-tasks
    spec:
      tasks:
        - name: pre-work
          taskRef:
            Name: some-pre-work
        - name: unit-test
          taskRef:
            Name: run-unit-test
          runAfter:
            - pre-work
        - name: integration-test
          taskRef:
            Name: run-integration-test
          runAfter:
            - unit-test
      finally:
        - name: cleanup-test
          taskRef:
            Name: cleanup-cluster
        - name: report-results
          taskRef:
            Name: report-test-results
    ```
    pritidesai committed May 21, 2020
    Configuration menu
    Copy the full SHA
    b26f852 View commit details
    Browse the repository at this point in the history