apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
  annotations:
    kubectl.kubernetes.io/last-applied-configuration: >
      {"apiVersion":"tekton.dev/v1beta1","kind":"Pipeline","metadata":{"annotations":{},"name":"test-triggers-updated","namespace":"kabhishe-tests"},"spec":{"finally":[{"name":"uninstall-pipelines-operator","params":[{"name":"CLUSTER_NAME","value":"$(params.CLUSTER_NAME)"},{"name":"IMAGE","value":"$(params.RELEASE_TESTS_IMAGE)"},{"name":"RUN_AS","value":"admin"},{"name":"SPECS","value":"specs/olm.spec"},{"name":"TAGS","value":"uninstall"},{"name":"UPLOAD_PATH","value":"$(tasks.generate-ids.results.path)"}],"taskRef":{"name":"release-tests"},"timeout":"5m","when":[{"input":"prod","operator":"notin","values":["$(params.OPERATOR_ENVIRONMENT)"]}],"workspaces":[{"name":"release-tests-git","subPath":"release-tests-git","workspace":"git"},{"name":"install-dir","workspace":"install-dir"}]},{"name":"cleanup-cluster","params":[{"name":"CLUSTER_NAME","value":"$(params.CLUSTER_NAME)"}],"taskRef":{"name":"cleanup-cluster"},"workspaces":[{"name":"install-dir","workspace":"install-dir"}]},{"name":"upload-test-results-to-polarion","params":[{"name":"ARTIFACTS","value":["pipelines-operator-subscription;$(tasks.pipelines-operator-subscription.status);olm-install;olm-install.log","metrics-tests;$(tasks.metrics-tests.status);metrics-e2e;metrics-e2e.log","release-tests-pipelines;$(tasks.release-tests-pipelines.status);pipelines-e2e;pipelines-e2e.log","release-tests-triggers;$(tasks.release-tests-triggers.status);triggers-e2e;triggers-e2e.log","tls-release-tests-triggers;$(tasks.tls-release-tests-triggers.status);triggers-tls;triggers-tls.log","test-create-rbac-resource;$(tasks.test-create-rbac-resource.status);operator-rbac-disable;operator-rbac-disable.log","test-auto-prune;$(tasks.test-auto-prune.status);operator-auto-prune;operator-auto-prune.log"]},{"name":"CLUSTER_NAME","value":"$(tasks.generate-ids.results.cluster-name)"},{"name":"MILESTONE_ID","value":"OpenshiftPipelines-$(params.OPERATOR_VERSION)-{}-$(params.OPERATOR_ENVIRONMENT)"},{"name":"TEST_RUN_ID","value":"OpenshiftPipelines-$(params.OPERATOR_VERSION)-{}-$(params.ARCH)-$(params.INDEX)"}],"taskRef":{"name":"upload-test-results-to-polarion"},"when":[{"input":"$(params.UPLOAD_RESULTS_TO_POLARION)","operator":"in","values":["True","true"]}],"workspaces":[{"name":"plumbing-git","subPath":"plumbing-git","workspace":"git"},{"name":"release-tests-git","subPath":"release-tests-git","workspace":"git"},{"name":"install-dir","workspace":"install-dir"}]}],"params":[{"default":"linux/amd64","description":"artifacts
      architecture","name":"ARCH"},{"name":"BOOTSTRAP_IMAGE"},{"default":"redhat-operators","description":"provide
      catalog-source name through which user have to subscribe
      operator","name":"CATALOG_SOURCE"},{"default":"stable","description":"subscription
      channel","name":"CHANNEL"},{"description":"git branch of CLI
      repo","name":"CLI_TESTS_BRANCH"},{"description":"upstream/downstream","name":"CLI_TESTS_TYPE"},{"description":"Cluster
      Name","name":"CLUSTER_NAME"},{"default":"false","description":"flag to
      decide if provisioned cluster is
      disconnected","name":"IS_DISCONNECTED"},{"default":"","description":"Specify
      index image number (e.g. 138700) for pre-stage, generated tag (e.g.
      v4.9-2111261545) for stage.\nThis param will be ignored if
      OPERATOR_ENVIRONMENT is
      prod.\n","name":"INDEX"},{"default":"quay.io","description":"Provide
      mirror registry
      details.","name":"MIRROR_REGISTRY"},{"description":"specify p12n operator
      environment (e.g. prod, stage,
      pre-stage)","name":"OPERATOR_ENVIRONMENT"},{"default":"","description":"version
      of the Openshift Pipelines operator in x.y.z format\nex: 1.6.0,
      1.5.2\nOPERATOR_VERSION is must when UPLOAD_RESULTS_TO_POLARION is
      True\n","name":"OPERATOR_VERSION"},{"description":"release-tests latest
      image","name":"RELEASE_TESTS_IMAGE"},{"description":"placeholder to
      provide release-tests branch (default-\u003e
      master)","name":"RELEASE_TESTS_BRANCH"},{"default":["release-tests-triggers"],"description":"Names
      of the test suites which needs to be
      executed","name":"TEST_SUITES","type":"array"},{"description":"Link to
      download tar file of tkn\nex:
      https://mirror.openshift.com/pub/openshift-v4/clients/pipeline/latest/tkn-linux-amd64-0.19.1.tar.gz\n","name":"TKN_DOWNLOAD_URL"},{"default":"master","name":"TUTORIAL_BRANCH"},{"default":"False","description":"Uploads
      test results to Polarion if this param is set to
      True/true","name":"UPLOAD_RESULTS_TO_POLARION"}],"tasks":[{"name":"generate-ids","params":[{"name":"CLUSTER_NAME_PREFIX","value":"$(params.CLUSTER_NAME)"},{"name":"RUN_NAME","value":"$(context.pipelineRun.name)"}],"taskRef":{"name":"generate-ids"}},{"name":"import-cluster-metadata","params":[{"name":"CLUSTER_NAME","value":"$(params.CLUSTER_NAME)"}],"runAfter":["generate-ids"],"taskRef":{"name":"import-cluster-metadata"},"workspaces":[{"name":"install-dir","workspace":"install-dir"}]},{"name":"clone-plumbing-git","params":[{"name":"url","value":"https://gitlab.cee.redhat.com/tekton/plumbing.git"},{"name":"deleteExisting","value":"true"},{"name":"sslVerify","value":"false"}],"taskRef":{"kind":"ClusterTask","name":"git-clone"},"workspaces":[{"name":"output","subPath":"plumbing-git","workspace":"git"}]},{"name":"clone-release-tests-git","params":[{"name":"url","value":"https://github.com/openshift-pipelines/release-tests.git"},{"name":"deleteExisting","value":"true"},{"name":"sslVerify","value":"false"},{"name":"revision","value":"$(params.RELEASE_TESTS_BRANCH)"}],"taskRef":{"kind":"ClusterTask","name":"git-clone"},"workspaces":[{"name":"output","subPath":"release-tests-git","workspace":"git"}]},{"name":"clone-cli-git","params":[{"name":"url","value":"https://github.com/tektoncd/cli.git"},{"name":"deleteExisting","value":"true"},{"name":"revision","value":"$(params.CLI_TESTS_BRANCH)"}],"taskRef":{"kind":"ClusterTask","name":"git-clone"},"when":[{"input":"cli-tests-fedora","operator":"in","values":["$(params.TEST_SUITES[*])"]}],"workspaces":[{"name":"output","subPath":"cli-git","workspace":"git"}]},{"name":"clone-tutorial-git","params":[{"name":"url","value":"https://github.com/openshift/pipelines-tutorial.git"},{"name":"deleteExisting","value":"true"},{"name":"sslVerify","value":"false"},{"name":"revision","value":"$(params.TUTORIAL_BRANCH)"}],"taskRef":{"kind":"ClusterTask","name":"git-clone"},"when":[{"input":"tutorial-tests","operator":"in","values":["$(params.TEST_SUITES[*])"]}],"workspaces":[{"name":"output","subPath":"tutorial-git","workspace":"git"}]},{"name":"setup-testing-accounts","params":[{"name":"CLUSTER_NAME","value":"$(params.CLUSTER_NAME)"}],"runAfter":["import-cluster-metadata","clone-plumbing-git","clone-release-tests-git","clone-tutorial-git","clone-cli-git"],"taskRef":{"name":"setup-testing-accounts"},"workspaces":[{"name":"install-dir","workspace":"install-dir"},{"name":"plumbing-git","subPath":"plumbing-git","workspace":"git"}]},{"conditions":[{"conditionRef":"check-for-operator-environment","params":[{"name":"OPERATOR_ENVIRONMENT","value":"$(params.OPERATOR_ENVIRONMENT)"}]}],"name":"generate-build-artifacts","params":[{"name":"ARCH","value":"$(params.ARCH)"},{"name":"CATALOG_SOURCE","value":"$(params.CATALOG_SOURCE)"},{"name":"IS_DISCONNECTED","value":"$(params.IS_DISCONNECTED)"},{"name":"INDEX","value":"$(params.INDEX)"},{"name":"MIRROR_REGISTRY","value":"$(params.MIRROR_REGISTRY)"},{"name":"OPERATOR_ENVIRONMENT","value":"$(params.OPERATOR_ENVIRONMENT)"}],"runAfter":["setup-testing-accounts"],"taskRef":{"name":"generate-build-artifacts"},"workspaces":[{"name":"build-artifacts","subPath":"build-artifacts","workspace":"git"}]},{"name":"mirror-operator-images","params":[{"name":"INDEX_IMAGE_DST","value":"$(tasks.generate-build-artifacts.results.index-image-dst)"},{"name":"INDEX_IMAGE_SRC","value":"$(tasks.generate-build-artifacts.results.index-image-src)"},{"name":"IS_DISCONNECTED","value":"$(params.IS_DISCONNECTED)"},{"name":"OPERATOR_ENVIRONMENT","value":"$(params.OPERATOR_ENVIRONMENT)"}],"runAfter":["generate-build-artifacts"],"taskRef":{"name":"mirror-operator-images"},"when":[{"input":"true","operator":"in","values":["$(params.IS_DISCONNECTED)"]}],"workspaces":[{"name":"build-artifacts","subPath":"build-artifacts","workspace":"git"}]},{"name":"configure-operator","params":[{"name":"CLUSTER_NAME","value":"$(params.CLUSTER_NAME)"},{"name":"CATALOG_SOURCE","value":"$(params.CATALOG_SOURCE)"},{"name":"IS_DISCONNECTED","value":"$(params.IS_DISCONNECTED)"},{"name":"OPERATOR_ENVIRONMENT","value":"$(params.OPERATOR_ENVIRONMENT)"}],"runAfter":["mirror-operator-images"],"taskRef":{"name":"configure-operator"},"when":[{"input":"prod","operator":"notin","values":["$(params.OPERATOR_ENVIRONMENT)"]}],"workspaces":[{"name":"build-artifacts","subPath":"build-artifacts","workspace":"git"}]},{"name":"pipelines-operator-subscription","params":[{"name":"CATALOG_SOURCE","value":"$(params.CATALOG_SOURCE)"},{"name":"CHANNEL","value":"$(params.CHANNEL)"},{"name":"CLUSTER_NAME","value":"$(params.CLUSTER_NAME)"},{"name":"IMAGE","value":"$(params.RELEASE_TESTS_IMAGE)"},{"name":"RUN_AS","value":"admin"},{"name":"SPECS","value":"specs/olm.spec"},{"name":"TAGS","value":"install"},{"name":"UPLOAD_PATH","value":"$(tasks.generate-ids.results.path)"}],"runAfter":["configure-operator"],"taskRef":{"name":"release-tests"},"timeout":"15m","workspaces":[{"name":"install-dir","workspace":"install-dir"},{"name":"release-tests-git","subPath":"release-tests-git","workspace":"git"}]},{"name":"metrics-tests","params":[{"name":"CLUSTER_NAME","value":"$(params.CLUSTER_NAME)"},{"name":"IMAGE","value":"$(params.RELEASE_TESTS_IMAGE)"},{"name":"RUN_AS","value":"admin"},{"name":"SPECS","value":"specs/metrics/"},{"name":"TAGS","value":"e2e"},{"name":"UPLOAD_PATH","value":"$(tasks.generate-ids.results.path)"}],"runAfter":["pipelines-operator-subscription"],"taskRef":{"name":"release-tests"},"timeout":"30m","when":[{"input":"metrics-tests","operator":"in","values":["$(params.TEST_SUITES[*])"]}],"workspaces":[{"name":"install-dir","workspace":"install-dir"},{"name":"release-tests-git","subPath":"release-tests-git","workspace":"git"}]},{"name":"release-tests-pipelines","params":[{"name":"CLUSTER_NAME","value":"$(params.CLUSTER_NAME)"},{"name":"IMAGE","value":"$(params.RELEASE_TESTS_IMAGE)"},{"name":"RUN_AS","value":"non-admin"},{"name":"SPECS","value":"specs/pipelines/"},{"name":"TAGS","value":"e2e"},{"name":"UPLOAD_PATH","value":"$(tasks.generate-ids.results.path)"}],"runAfter":["pipelines-operator-subscription"],"taskRef":{"name":"release-tests"},"timeout":"30m","when":[{"input":"release-tests-pipelines","operator":"in","values":["$(params.TEST_SUITES[*])"]}],"workspaces":[{"name":"install-dir","workspace":"install-dir"},{"name":"release-tests-git","subPath":"release-tests-git","workspace":"git"}]},{"name":"release-tests-triggers","params":[{"name":"CLUSTER_NAME","value":"$(params.CLUSTER_NAME)"},{"name":"IMAGE","value":"$(params.RELEASE_TESTS_IMAGE)"},{"name":"RUN_AS","value":"non-admin"},{"name":"SPECS","value":"specs/triggers/"},{"name":"TAGS","value":"e2e"},{"name":"UPLOAD_PATH","value":"$(tasks.generate-ids.results.path)"}],"runAfter":["pipelines-operator-subscription"],"taskRef":{"name":"release-tests"},"timeout":"30m","when":[{"input":"release-tests-triggers","operator":"in","values":["$(params.TEST_SUITES[*])"]}],"workspaces":[{"name":"install-dir","workspace":"install-dir"},{"name":"release-tests-git","subPath":"release-tests-git","workspace":"git"}]},{"name":"tls-release-tests-triggers","params":[{"name":"CLUSTER_NAME","value":"$(params.CLUSTER_NAME)"},{"name":"IMAGE","value":"$(params.RELEASE_TESTS_IMAGE)"},{"name":"RUN_AS","value":"admin"},{"name":"SPECS","value":"specs/triggers/eventlistener.spec"},{"name":"TAGS","value":"tls"},{"name":"UPLOAD_PATH","value":"$(tasks.generate-ids.results.path)"}],"runAfter":["pipelines-operator-subscription"],"taskRef":{"name":"release-tests"},"timeout":"30m","when":[{"input":"tls-release-tests-triggers","operator":"in","values":["$(params.TEST_SUITES[*])"]}],"workspaces":[{"name":"install-dir","workspace":"install-dir"},{"name":"release-tests-git","subPath":"release-tests-git","workspace":"git"}]},{"name":"tutorial-tests","params":[{"name":"IMAGE","value":"$(params.BOOTSTRAP_IMAGE)"},{"name":"CLUSTER_NAME","value":"$(params.CLUSTER_NAME)"}],"runAfter":["pipelines-operator-subscription"],"taskRef":{"name":"tutorial-tests"},"timeout":"20m","when":[{"input":"tutorial-tests","operator":"in","values":["$(params.TEST_SUITES[*])"]}],"workspaces":[{"name":"install-dir","workspace":"install-dir"},{"name":"tutorial-git","subPath":"tutorial-git","workspace":"git"}]},{"name":"cli-tests-fedora","params":[{"name":"CLUSTER_NAME","value":"$(params.CLUSTER_NAME)"},{"name":"IMAGE","value":"quay.io/veeresharadhya/test-tkn-fedora:v0.0.4"},{"name":"TKN_DOWNLOAD_URL","value":"$(params.TKN_DOWNLOAD_URL)"},{"name":"TEST_TYPE","value":"$(params.CLI_TESTS_TYPE)"},{"name":"UPLOAD_PATH","value":"$(tasks.generate-ids.results.path)"}],"runAfter":["pipelines-operator-subscription"],"taskRef":{"name":"cli-tests-in-container"},"when":[{"input":"cli-tests-fedora","operator":"in","values":["$(params.TEST_SUITES[*])"]}],"workspaces":[{"name":"install-dir","workspace":"install-dir"},{"name":"cli-git","subPath":"cli-git","workspace":"git"}]},{"name":"test-create-rbac-resource","params":[{"name":"CLUSTER_NAME","value":"$(params.CLUSTER_NAME)"},{"name":"IMAGE","value":"$(params.RELEASE_TESTS_IMAGE)"},{"name":"RUN_AS","value":"admin"},{"name":"SPECS","value":"specs/operator/rbac.spec"},{"name":"TAGS","value":"rbac-disable"},{"name":"UPLOAD_PATH","value":"$(tasks.generate-ids.results.path)"}],"runAfter":["metrics-tests","release-tests-pipelines","release-tests-triggers","tls-release-tests-triggers","tutorial-tests","cli-tests-fedora"],"taskRef":{"name":"release-tests"},"timeout":"5m","when":[{"input":"test-create-rbac-resource","operator":"in","values":["$(params.TEST_SUITES[*])"]}],"workspaces":[{"name":"install-dir","workspace":"install-dir"},{"name":"release-tests-git","subPath":"release-tests-git","workspace":"git"}]},{"name":"test-auto-prune","params":[{"name":"CLUSTER_NAME","value":"$(params.CLUSTER_NAME)"},{"name":"IMAGE","value":"$(params.RELEASE_TESTS_IMAGE)"},{"name":"RUN_AS","value":"admin"},{"name":"SPECS","value":"specs/operator/auto-prune.spec"},{"name":"TAGS","value":"auto-prune"},{"name":"UPLOAD_PATH","value":"$(tasks.generate-ids.results.path)"}],"runAfter":["test-create-rbac-resource"],"taskRef":{"name":"release-tests"},"timeout":"40m","when":[{"input":"test-auto-prune","operator":"in","values":["$(params.TEST_SUITES[*])"]}],"workspaces":[{"name":"install-dir","workspace":"install-dir"},{"name":"release-tests-git","subPath":"release-tests-git","workspace":"git"}]}],"workspaces":[{"name":"git"},{"name":"install-dir"}]}}
    pipeline.openshift.io/started-by: kabhishe
  resourceVersion: '100192066'
  name: test-triggers-updated-awmbjt
  uid: 988d68e9-cd6e-4172-8b8c-e04cda835691
  creationTimestamp: '2022-02-22T11:10:50Z'
  generation: 2
  managedFields:
    - apiVersion: tekton.dev/v1beta1
      fieldsType: FieldsV1
      fieldsV1:
        'f:metadata':
          'f:annotations':
            .: {}
            'f:pipeline.openshift.io/started-by': {}
          'f:labels':
            .: {}
            'f:tekton.dev/pipeline': {}
        'f:spec':
          .: {}
          'f:params': {}
          'f:pipelineRef':
            .: {}
            'f:name': {}
          'f:serviceAccountName': {}
          'f:status': {}
          'f:timeout': {}
          'f:workspaces': {}
      manager: Mozilla
      operation: Update
      time: '2022-02-22T11:10:50Z'
    - apiVersion: tekton.dev/v1beta1
      fieldsType: FieldsV1
      fieldsV1:
        'f:metadata':
          'f:annotations':
            'f:kubectl.kubernetes.io/last-applied-configuration': {}
      manager: openshift-pipelines-controller
      operation: Update
      time: '2022-02-22T11:10:50Z'
    - apiVersion: tekton.dev/v1beta1
      fieldsType: FieldsV1
      fieldsV1:
        'f:status':
          .: {}
          'f:conditions': {}
          'f:pipelineSpec':
            .: {}
            'f:finally': {}
            'f:params': {}
            'f:tasks': {}
            'f:workspaces': {}
          'f:skippedTasks': {}
          'f:startTime': {}
          'f:taskRuns':
            .: {}
            'f:test-triggers-updated-awmbjt-clone-plumbing-git-7l67g':
              .: {}
              'f:pipelineTaskName': {}
              'f:status':
                .: {}
                'f:conditions': {}
                'f:podName': {}
                'f:startTime': {}
                'f:steps': {}
                'f:taskSpec':
                  .: {}
                  'f:description': {}
                  'f:params': {}
                  'f:results': {}
                  'f:steps': {}
                  'f:workspaces': {}
            'f:test-triggers-updated-awmbjt-clone-release-tests-git-sss7j':
              .: {}
              'f:pipelineTaskName': {}
              'f:status':
                .: {}
                'f:conditions': {}
                'f:podName': {}
                'f:startTime': {}
                'f:steps': {}
                'f:taskSpec':
                  .: {}
                  'f:description': {}
                  'f:params': {}
                  'f:results': {}
                  'f:steps': {}
                  'f:workspaces': {}
            'f:test-triggers-updated-awmbjt-generate-build-artifacts-958rj':
              .: {}
              'f:conditionChecks':
                .: {}
                'f:test-triggers-updated-awmbjt-generate-build-artifacts-958-rsrrm':
                  .: {}
                  'f:conditionName': {}
              'f:pipelineTaskName': {}
            'f:test-triggers-updated-awmbjt-generate-ids-zpqjx':
              .: {}
              'f:pipelineTaskName': {}
              'f:status':
                .: {}
                'f:conditions': {}
                'f:podName': {}
                'f:startTime': {}
                'f:steps': {}
                'f:taskSpec':
                  .: {}
                  'f:params': {}
                  'f:results': {}
                  'f:steps': {}
      manager: openshift-pipelines-controller
      operation: Update
      subresource: status
      time: '2022-02-22T11:11:00Z'
  namespace: kabhishe-tests
  labels:
    tekton.dev/pipeline: test-triggers-updated
spec:
  params:
    - name: BOOTSTRAP_IMAGE
      value: 'quay.io/praveen4g0/release-tests-bootstrap-image:v1.2.0'
    - name: CATALOG_SOURCE
      value: redhat-operators
    - name: CLI_TESTS_BRANCH
      value: release-v0.21.0
    - name: CLI_TESTS_TYPE
      value: downstream
    - name: CLUSTER_NAME
      value: kumapipe
    - name: CHANNEL
      value: stable
    - name: IS_DISCONNECTED
      value: 'false'
    - name: INDEX
      value: ''
    - name: OPERATOR_ENVIRONMENT
      value: prod
    - name: RELEASE_TESTS_IMAGE
      value: 'quay.io/praveen4g0/release-tests:4.6.6'
    - name: RELEASE_TESTS_BRANCH
      value: master
    - name: TKN_DOWNLOAD_URL
      value: >-
        https://mirror.openshift.com/pub/openshift-v4/clients/pipeline/latest/tkn-linux-amd64-0.21.0.tar.gz
    - name: TUTORIAL_BRANCH
      value: pipelines-1.6
  pipelineRef:
    name: test-triggers-updated
  serviceAccountName: pipeline
  status: PipelineRunCancelled
  timeout: 3h0m0s
  workspaces:
    - name: install-dir
      persistentVolumeClaim:
        claimName: install-dir
    - name: git
      volumeClaimTemplate:
        metadata:
          creationTimestamp: null
        spec:
          accessModes:
            - ReadWriteOnce
          resources:
            requests:
              storage: 200Mi
        status: {}
status:
  conditions:
    - lastTransitionTime: '2022-03-11T07:40:53Z'
      message: >-
        PipelineRun "test-triggers-updated-awmbjt" was cancelled but had errors
        trying to cancel TaskRuns and/or Runs: Failed to patch TaskRun
        `test-triggers-updated-awmbjt-clone-plumbing-git-7l67g` with
        cancellation: taskruns.tekton.dev
        "test-triggers-updated-awmbjt-clone-plumbing-git-7l67g" not found

        Failed to patch TaskRun
        `test-triggers-updated-awmbjt-clone-release-tests-git-sss7j` with
        cancellation: taskruns.tekton.dev
        "test-triggers-updated-awmbjt-clone-release-tests-git-sss7j" not found

        Failed to patch TaskRun
        `test-triggers-updated-awmbjt-generate-build-artifacts-958rj` with
        cancellation: taskruns.tekton.dev
        "test-triggers-updated-awmbjt-generate-build-artifacts-958rj" not found

        Failed to patch TaskRun
        `test-triggers-updated-awmbjt-generate-ids-zpqjx` with cancellation:
        taskruns.tekton.dev "test-triggers-updated-awmbjt-generate-ids-zpqjx"
        not found
      reason: PipelineRunCouldntCancel
      status: Unknown
      type: Succeeded
  pipelineSpec:
    finally:
      - name: uninstall-pipelines-operator
        params:
          - name: CLUSTER_NAME
            value: $(params.CLUSTER_NAME)
          - name: IMAGE
            value: $(params.RELEASE_TESTS_IMAGE)
          - name: RUN_AS
            value: admin
          - name: SPECS
            value: specs/olm.spec
          - name: TAGS
            value: uninstall
          - name: UPLOAD_PATH
            value: $(tasks.generate-ids.results.path)
        taskRef:
          kind: Task
          name: release-tests
        timeout: 5m0s
        when:
          - input: prod
            operator: notin
            values:
              - $(params.OPERATOR_ENVIRONMENT)
        workspaces:
          - name: release-tests-git
            subPath: release-tests-git
            workspace: git
          - name: install-dir
            workspace: install-dir
      - name: cleanup-cluster
        params:
          - name: CLUSTER_NAME
            value: $(params.CLUSTER_NAME)
        taskRef:
          kind: Task
          name: cleanup-cluster
        workspaces:
          - name: install-dir
            workspace: install-dir
      - name: upload-test-results-to-polarion
        params:
          - name: ARTIFACTS
            value:
              - >-
                pipelines-operator-subscription;$(tasks.pipelines-operator-subscription.status);olm-install;olm-install.log
              - >-
                metrics-tests;$(tasks.metrics-tests.status);metrics-e2e;metrics-e2e.log
              - >-
                release-tests-pipelines;$(tasks.release-tests-pipelines.status);pipelines-e2e;pipelines-e2e.log
              - >-
                release-tests-triggers;$(tasks.release-tests-triggers.status);triggers-e2e;triggers-e2e.log
              - >-
                tls-release-tests-triggers;$(tasks.tls-release-tests-triggers.status);triggers-tls;triggers-tls.log
              - >-
                test-create-rbac-resource;$(tasks.test-create-rbac-resource.status);operator-rbac-disable;operator-rbac-disable.log
              - >-
                test-auto-prune;$(tasks.test-auto-prune.status);operator-auto-prune;operator-auto-prune.log
          - name: CLUSTER_NAME
            value: $(tasks.generate-ids.results.cluster-name)
          - name: MILESTONE_ID
            value: >-
              OpenshiftPipelines-$(params.OPERATOR_VERSION)-{}-$(params.OPERATOR_ENVIRONMENT)
          - name: TEST_RUN_ID
            value: >-
              OpenshiftPipelines-$(params.OPERATOR_VERSION)-{}-$(params.ARCH)-$(params.INDEX)
        taskRef:
          kind: Task
          name: upload-test-results-to-polarion
        when:
          - input: $(params.UPLOAD_RESULTS_TO_POLARION)
            operator: in
            values:
              - 'True'
              - 'true'
        workspaces:
          - name: plumbing-git
            subPath: plumbing-git
            workspace: git
          - name: release-tests-git
            subPath: release-tests-git
            workspace: git
          - name: install-dir
            workspace: install-dir
    params:
      - default: linux/amd64
        description: artifacts architecture
        name: ARCH
        type: string
      - name: BOOTSTRAP_IMAGE
        type: string
      - default: redhat-operators
        description: >-
          provide catalog-source name through which user have to subscribe
          operator
        name: CATALOG_SOURCE
        type: string
      - default: stable
        description: subscription channel
        name: CHANNEL
        type: string
      - description: git branch of CLI repo
        name: CLI_TESTS_BRANCH
        type: string
      - description: upstream/downstream
        name: CLI_TESTS_TYPE
        type: string
      - description: Cluster Name
        name: CLUSTER_NAME
        type: string
      - default: 'false'
        description: flag to decide if provisioned cluster is disconnected
        name: IS_DISCONNECTED
        type: string
      - default: ''
        description: >
          Specify index image number (e.g. 138700) for pre-stage, generated tag
          (e.g. v4.9-2111261545) for stage.

          This param will be ignored if OPERATOR_ENVIRONMENT is prod.
        name: INDEX
        type: string
      - default: quay.io
        description: Provide mirror registry details.
        name: MIRROR_REGISTRY
        type: string
      - description: 'specify p12n operator environment (e.g. prod, stage, pre-stage)'
        name: OPERATOR_ENVIRONMENT
        type: string
      - default: ''
        description: |
          version of the Openshift Pipelines operator in x.y.z format
          ex: 1.6.0, 1.5.2
          OPERATOR_VERSION is must when UPLOAD_RESULTS_TO_POLARION is True
        name: OPERATOR_VERSION
        type: string
      - description: release-tests latest image
        name: RELEASE_TESTS_IMAGE
        type: string
      - description: placeholder to provide release-tests branch (default-> master)
        name: RELEASE_TESTS_BRANCH
        type: string
      - default:
          - release-tests-triggers
        description: Names of the test suites which needs to be executed
        name: TEST_SUITES
        type: array
      - description: >
          Link to download tar file of tkn

          ex:
          https://mirror.openshift.com/pub/openshift-v4/clients/pipeline/latest/tkn-linux-amd64-0.19.1.tar.gz
        name: TKN_DOWNLOAD_URL
        type: string
      - default: master
        name: TUTORIAL_BRANCH
        type: string
      - default: 'False'
        description: Uploads test results to Polarion if this param is set to True/true
        name: UPLOAD_RESULTS_TO_POLARION
        type: string
    tasks:
      - name: generate-ids
        params:
          - name: CLUSTER_NAME_PREFIX
            value: $(params.CLUSTER_NAME)
          - name: RUN_NAME
            value: $(context.pipelineRun.name)
        taskRef:
          kind: Task
          name: generate-ids
      - name: import-cluster-metadata
        params:
          - name: CLUSTER_NAME
            value: $(params.CLUSTER_NAME)
        runAfter:
          - generate-ids
        taskRef:
          kind: Task
          name: import-cluster-metadata
        workspaces:
          - name: install-dir
            workspace: install-dir
      - name: clone-plumbing-git
        params:
          - name: url
            value: 'https://gitlab.cee.redhat.com/tekton/plumbing.git'
          - name: deleteExisting
            value: 'true'
          - name: sslVerify
            value: 'false'
        taskRef:
          kind: ClusterTask
          name: git-clone
        workspaces:
          - name: output
            subPath: plumbing-git
            workspace: git
      - name: clone-release-tests-git
        params:
          - name: url
            value: 'https://github.com/openshift-pipelines/release-tests.git'
          - name: deleteExisting
            value: 'true'
          - name: sslVerify
            value: 'false'
          - name: revision
            value: $(params.RELEASE_TESTS_BRANCH)
        taskRef:
          kind: ClusterTask
          name: git-clone
        workspaces:
          - name: output
            subPath: release-tests-git
            workspace: git
      - name: clone-cli-git
        params:
          - name: url
            value: 'https://github.com/tektoncd/cli.git'
          - name: deleteExisting
            value: 'true'
          - name: revision
            value: $(params.CLI_TESTS_BRANCH)
        taskRef:
          kind: ClusterTask
          name: git-clone
        when:
          - input: cli-tests-fedora
            operator: in
            values:
              - '$(params.TEST_SUITES[*])'
        workspaces:
          - name: output
            subPath: cli-git
            workspace: git
      - name: clone-tutorial-git
        params:
          - name: url
            value: 'https://github.com/openshift/pipelines-tutorial.git'
          - name: deleteExisting
            value: 'true'
          - name: sslVerify
            value: 'false'
          - name: revision
            value: $(params.TUTORIAL_BRANCH)
        taskRef:
          kind: ClusterTask
          name: git-clone
        when:
          - input: tutorial-tests
            operator: in
            values:
              - '$(params.TEST_SUITES[*])'
        workspaces:
          - name: output
            subPath: tutorial-git
            workspace: git
      - name: setup-testing-accounts
        params:
          - name: CLUSTER_NAME
            value: $(params.CLUSTER_NAME)
        runAfter:
          - import-cluster-metadata
          - clone-plumbing-git
          - clone-release-tests-git
          - clone-tutorial-git
          - clone-cli-git
        taskRef:
          kind: Task
          name: setup-testing-accounts
        workspaces:
          - name: install-dir
            workspace: install-dir
          - name: plumbing-git
            subPath: plumbing-git
            workspace: git
      - conditions:
          - conditionRef: check-for-operator-environment
            params:
              - name: OPERATOR_ENVIRONMENT
                value: $(params.OPERATOR_ENVIRONMENT)
        name: generate-build-artifacts
        params:
          - name: ARCH
            value: $(params.ARCH)
          - name: CATALOG_SOURCE
            value: $(params.CATALOG_SOURCE)
          - name: IS_DISCONNECTED
            value: $(params.IS_DISCONNECTED)
          - name: INDEX
            value: $(params.INDEX)
          - name: MIRROR_REGISTRY
            value: $(params.MIRROR_REGISTRY)
          - name: OPERATOR_ENVIRONMENT
            value: $(params.OPERATOR_ENVIRONMENT)
        runAfter:
          - setup-testing-accounts
        taskRef:
          kind: Task
          name: generate-build-artifacts
        workspaces:
          - name: build-artifacts
            subPath: build-artifacts
            workspace: git
      - name: mirror-operator-images
        params:
          - name: INDEX_IMAGE_DST
            value: $(tasks.generate-build-artifacts.results.index-image-dst)
          - name: INDEX_IMAGE_SRC
            value: $(tasks.generate-build-artifacts.results.index-image-src)
          - name: IS_DISCONNECTED
            value: $(params.IS_DISCONNECTED)
          - name: OPERATOR_ENVIRONMENT
            value: $(params.OPERATOR_ENVIRONMENT)
        runAfter:
          - generate-build-artifacts
        taskRef:
          kind: Task
          name: mirror-operator-images
        when:
          - input: 'true'
            operator: in
            values:
              - $(params.IS_DISCONNECTED)
        workspaces:
          - name: build-artifacts
            subPath: build-artifacts
            workspace: git
      - name: configure-operator
        params:
          - name: CLUSTER_NAME
            value: $(params.CLUSTER_NAME)
          - name: CATALOG_SOURCE
            value: $(params.CATALOG_SOURCE)
          - name: IS_DISCONNECTED
            value: $(params.IS_DISCONNECTED)
          - name: OPERATOR_ENVIRONMENT
            value: $(params.OPERATOR_ENVIRONMENT)
        runAfter:
          - mirror-operator-images
        taskRef:
          kind: Task
          name: configure-operator
        when:
          - input: prod
            operator: notin
            values:
              - $(params.OPERATOR_ENVIRONMENT)
        workspaces:
          - name: build-artifacts
            subPath: build-artifacts
            workspace: git
      - name: pipelines-operator-subscription
        params:
          - name: CATALOG_SOURCE
            value: $(params.CATALOG_SOURCE)
          - name: CHANNEL
            value: $(params.CHANNEL)
          - name: CLUSTER_NAME
            value: $(params.CLUSTER_NAME)
          - name: IMAGE
            value: $(params.RELEASE_TESTS_IMAGE)
          - name: RUN_AS
            value: admin
          - name: SPECS
            value: specs/olm.spec
          - name: TAGS
            value: install
          - name: UPLOAD_PATH
            value: $(tasks.generate-ids.results.path)
        runAfter:
          - configure-operator
        taskRef:
          kind: Task
          name: release-tests
        timeout: 15m0s
        workspaces:
          - name: install-dir
            workspace: install-dir
          - name: release-tests-git
            subPath: release-tests-git
            workspace: git
      - name: metrics-tests
        params:
          - name: CLUSTER_NAME
            value: $(params.CLUSTER_NAME)
          - name: IMAGE
            value: $(params.RELEASE_TESTS_IMAGE)
          - name: RUN_AS
            value: admin
          - name: SPECS
            value: specs/metrics/
          - name: TAGS
            value: e2e
          - name: UPLOAD_PATH
            value: $(tasks.generate-ids.results.path)
        runAfter:
          - pipelines-operator-subscription
        taskRef:
          kind: Task
          name: release-tests
        timeout: 30m0s
        when:
          - input: metrics-tests
            operator: in
            values:
              - '$(params.TEST_SUITES[*])'
        workspaces:
          - name: install-dir
            workspace: install-dir
          - name: release-tests-git
            subPath: release-tests-git
            workspace: git
      - name: release-tests-pipelines
        params:
          - name: CLUSTER_NAME
            value: $(params.CLUSTER_NAME)
          - name: IMAGE
            value: $(params.RELEASE_TESTS_IMAGE)
          - name: RUN_AS
            value: non-admin
          - name: SPECS
            value: specs/pipelines/
          - name: TAGS
            value: e2e
          - name: UPLOAD_PATH
            value: $(tasks.generate-ids.results.path)
        runAfter:
          - pipelines-operator-subscription
        taskRef:
          kind: Task
          name: release-tests
        timeout: 30m0s
        when:
          - input: release-tests-pipelines
            operator: in
            values:
              - '$(params.TEST_SUITES[*])'
        workspaces:
          - name: install-dir
            workspace: install-dir
          - name: release-tests-git
            subPath: release-tests-git
            workspace: git
      - name: release-tests-triggers
        params:
          - name: CLUSTER_NAME
            value: $(params.CLUSTER_NAME)
          - name: IMAGE
            value: $(params.RELEASE_TESTS_IMAGE)
          - name: RUN_AS
            value: non-admin
          - name: SPECS
            value: specs/triggers/
          - name: TAGS
            value: e2e
          - name: UPLOAD_PATH
            value: $(tasks.generate-ids.results.path)
        runAfter:
          - pipelines-operator-subscription
        taskRef:
          kind: Task
          name: release-tests
        timeout: 30m0s
        when:
          - input: release-tests-triggers
            operator: in
            values:
              - '$(params.TEST_SUITES[*])'
        workspaces:
          - name: install-dir
            workspace: install-dir
          - name: release-tests-git
            subPath: release-tests-git
            workspace: git
      - name: tls-release-tests-triggers
        params:
          - name: CLUSTER_NAME
            value: $(params.CLUSTER_NAME)
          - name: IMAGE
            value: $(params.RELEASE_TESTS_IMAGE)
          - name: RUN_AS
            value: admin
          - name: SPECS
            value: specs/triggers/eventlistener.spec
          - name: TAGS
            value: tls
          - name: UPLOAD_PATH
            value: $(tasks.generate-ids.results.path)
        runAfter:
          - pipelines-operator-subscription
        taskRef:
          kind: Task
          name: release-tests
        timeout: 30m0s
        when:
          - input: tls-release-tests-triggers
            operator: in
            values:
              - '$(params.TEST_SUITES[*])'
        workspaces:
          - name: install-dir
            workspace: install-dir
          - name: release-tests-git
            subPath: release-tests-git
            workspace: git
      - name: tutorial-tests
        params:
          - name: IMAGE
            value: $(params.BOOTSTRAP_IMAGE)
          - name: CLUSTER_NAME
            value: $(params.CLUSTER_NAME)
        runAfter:
          - pipelines-operator-subscription
        taskRef:
          kind: Task
          name: tutorial-tests
        timeout: 20m0s
        when:
          - input: tutorial-tests
            operator: in
            values:
              - '$(params.TEST_SUITES[*])'
        workspaces:
          - name: install-dir
            workspace: install-dir
          - name: tutorial-git
            subPath: tutorial-git
            workspace: git
      - name: cli-tests-fedora
        params:
          - name: CLUSTER_NAME
            value: $(params.CLUSTER_NAME)
          - name: IMAGE
            value: 'quay.io/veeresharadhya/test-tkn-fedora:v0.0.4'
          - name: TKN_DOWNLOAD_URL
            value: $(params.TKN_DOWNLOAD_URL)
          - name: TEST_TYPE
            value: $(params.CLI_TESTS_TYPE)
          - name: UPLOAD_PATH
            value: $(tasks.generate-ids.results.path)
        runAfter:
          - pipelines-operator-subscription
        taskRef:
          kind: Task
          name: cli-tests-in-container
        when:
          - input: cli-tests-fedora
            operator: in
            values:
              - '$(params.TEST_SUITES[*])'
        workspaces:
          - name: install-dir
            workspace: install-dir
          - name: cli-git
            subPath: cli-git
            workspace: git
      - name: test-create-rbac-resource
        params:
          - name: CLUSTER_NAME
            value: $(params.CLUSTER_NAME)
          - name: IMAGE
            value: $(params.RELEASE_TESTS_IMAGE)
          - name: RUN_AS
            value: admin
          - name: SPECS
            value: specs/operator/rbac.spec
          - name: TAGS
            value: rbac-disable
          - name: UPLOAD_PATH
            value: $(tasks.generate-ids.results.path)
        runAfter:
          - metrics-tests
          - release-tests-pipelines
          - release-tests-triggers
          - tls-release-tests-triggers
          - tutorial-tests
          - cli-tests-fedora
        taskRef:
          kind: Task
          name: release-tests
        timeout: 5m0s
        when:
          - input: test-create-rbac-resource
            operator: in
            values:
              - '$(params.TEST_SUITES[*])'
        workspaces:
          - name: install-dir
            workspace: install-dir
          - name: release-tests-git
            subPath: release-tests-git
            workspace: git
      - name: test-auto-prune
        params:
          - name: CLUSTER_NAME
            value: $(params.CLUSTER_NAME)
          - name: IMAGE
            value: $(params.RELEASE_TESTS_IMAGE)
          - name: RUN_AS
            value: admin
          - name: SPECS
            value: specs/operator/auto-prune.spec
          - name: TAGS
            value: auto-prune
          - name: UPLOAD_PATH
            value: $(tasks.generate-ids.results.path)
        runAfter:
          - test-create-rbac-resource
        taskRef:
          kind: Task
          name: release-tests
        timeout: 40m0s
        when:
          - input: test-auto-prune
            operator: in
            values:
              - '$(params.TEST_SUITES[*])'
        workspaces:
          - name: install-dir
            workspace: install-dir
          - name: release-tests-git
            subPath: release-tests-git
            workspace: git
    workspaces:
      - name: git
      - name: install-dir
  skippedTasks:
    - name: clone-cli-git
      whenExpressions:
        - input: cli-tests-fedora
          operator: in
          values:
            - release-tests-triggers
    - name: clone-tutorial-git
      whenExpressions:
        - input: tutorial-tests
          operator: in
          values:
            - release-tests-triggers
  startTime: '2022-02-22T11:10:50Z'
  taskRuns:
    test-triggers-updated-awmbjt-clone-plumbing-git-7l67g:
      pipelineTaskName: clone-plumbing-git
      status:
        conditions:
          - lastTransitionTime: '2022-02-22T11:10:52Z'
            message: >-
              pod status "Initialized":"False"; message: "containers with
              incomplete status: [place-tools place-scripts]"
            reason: Pending
            status: Unknown
            type: Succeeded
        podName: test-triggers-updated-awmbjt-clone-plumbing-git-7l67g-pod-bcd5q
        startTime: '2022-02-22T11:10:50Z'
        steps:
          - container: step-clone
            name: clone
            waiting:
              reason: PodInitializing
        taskSpec:
          description: >-
            These Tasks are Git tasks to work with repositories used by other
            tasks in your Pipeline.

            The git-clone Task will clone a repo from the provided url into the
            output Workspace. By default the repo will be cloned into the root
            of your Workspace. You can clone into a subdirectory by setting this
            Task's subdirectory param. This Task also supports sparse checkouts.
            To perform a sparse checkout, pass a list of comma separated
            directory patterns to this Task's sparseCheckoutDirectories param.
          params:
            - description: Repository URL to clone from.
              name: url
              type: string
            - default: ''
              description: 'Revision to checkout. (branch, tag, sha, ref, etc...)'
              name: revision
              type: string
            - default: ''
              description: Refspec to fetch before checking out revision.
              name: refspec
              type: string
            - default: 'true'
              description: Initialize and fetch git submodules.
              name: submodules
              type: string
            - default: '1'
              description: >-
                Perform a shallow clone, fetching only the most recent N
                commits.
              name: depth
              type: string
            - default: 'true'
              description: >-
                Set the `http.sslVerify` global git config. Setting this to
                `false` is not advised unless you are sure that you trust your
                git remote.
              name: sslVerify
              type: string
            - default: ''
              description: >-
                Subdirectory inside the `output` Workspace to clone the repo
                into.
              name: subdirectory
              type: string
            - default: ''
              description: >-
                Define the directory patterns to match or exclude when
                performing a sparse checkout.
              name: sparseCheckoutDirectories
              type: string
            - default: 'true'
              description: >-
                Clean out the contents of the destination directory if it
                already exists before cloning.
              name: deleteExisting
              type: string
            - default: ''
              description: HTTP proxy server for non-SSL requests.
              name: httpProxy
              type: string
            - default: ''
              description: HTTPS proxy server for SSL requests.
              name: httpsProxy
              type: string
            - default: ''
              description: Opt out of proxying HTTP/HTTPS requests.
              name: noProxy
              type: string
            - default: 'true'
              description: >-
                Log the commands that are executed during `git-clone`'s
                operation.
              name: verbose
              type: string
            - default: >-
                registry.redhat.io/openshift-pipelines/pipelines-git-init-rhel8@sha256:af7dd5b3b1598a980f17d5f5d3d8a4b11ab4f5184677f7f17ad302baa36bd3c1
              description: The image providing the git-init binary that this Task runs.
              name: gitInitImage
              type: string
            - default: /tekton/home
              description: >
                Absolute path to the user's home directory. Set this explicitly
                if you are running the image as a non-root user or have
                overridden

                the gitInitImage param with an image containing custom user
                configuration.
              name: userHome
              type: string
          results:
            - description: The precise commit SHA that was fetched by this Task.
              name: commit
            - description: The precise URL that was fetched by this Task.
              name: url
          steps:
            - env:
                - name: HOME
                  value: $(params.userHome)
                - name: PARAM_URL
                  value: $(params.url)
                - name: PARAM_REVISION
                  value: $(params.revision)
                - name: PARAM_REFSPEC
                  value: $(params.refspec)
                - name: PARAM_SUBMODULES
                  value: $(params.submodules)
                - name: PARAM_DEPTH
                  value: $(params.depth)
                - name: PARAM_SSL_VERIFY
                  value: $(params.sslVerify)
                - name: PARAM_SUBDIRECTORY
                  value: $(params.subdirectory)
                - name: PARAM_DELETE_EXISTING
                  value: $(params.deleteExisting)
                - name: PARAM_HTTP_PROXY
                  value: $(params.httpProxy)
                - name: PARAM_HTTPS_PROXY
                  value: $(params.httpsProxy)
                - name: PARAM_NO_PROXY
                  value: $(params.noProxy)
                - name: PARAM_VERBOSE
                  value: $(params.verbose)
                - name: PARAM_SPARSE_CHECKOUT_DIRECTORIES
                  value: $(params.sparseCheckoutDirectories)
                - name: PARAM_USER_HOME
                  value: $(params.userHome)
                - name: WORKSPACE_OUTPUT_PATH
                  value: $(workspaces.output.path)
                - name: WORKSPACE_SSH_DIRECTORY_BOUND
                  value: $(workspaces.ssh-directory.bound)
                - name: WORKSPACE_SSH_DIRECTORY_PATH
                  value: $(workspaces.ssh-directory.path)
                - name: WORKSPACE_BASIC_AUTH_DIRECTORY_BOUND
                  value: $(workspaces.basic-auth.bound)
                - name: WORKSPACE_BASIC_AUTH_DIRECTORY_PATH
                  value: $(workspaces.basic-auth.path)
              image: $(params.gitInitImage)
              name: clone
              resources: {}
              script: >
                #!/usr/bin/env sh

                set -eu


                if [ "${PARAM_VERBOSE}" = "true" ] ; then
                  set -x
                fi


                if [ "${WORKSPACE_BASIC_AUTH_DIRECTORY_BOUND}" = "true" ] ; then
                  cp "${WORKSPACE_BASIC_AUTH_DIRECTORY_PATH}/.git-credentials" "${PARAM_USER_HOME}/.git-credentials"
                  cp "${WORKSPACE_BASIC_AUTH_DIRECTORY_PATH}/.gitconfig" "${PARAM_USER_HOME}/.gitconfig"
                  chmod 400 "${PARAM_USER_HOME}/.git-credentials"
                  chmod 400 "${PARAM_USER_HOME}/.gitconfig"
                fi


                if [ "${WORKSPACE_SSH_DIRECTORY_BOUND}" = "true" ] ; then
                  cp -R "${WORKSPACE_SSH_DIRECTORY_PATH}" "${PARAM_USER_HOME}"/.ssh
                  chmod 700 "${PARAM_USER_HOME}"/.ssh
                  chmod -R 400 "${PARAM_USER_HOME}"/.ssh/*
                fi


                CHECKOUT_DIR="${WORKSPACE_OUTPUT_PATH}/${PARAM_SUBDIRECTORY}"


                cleandir() {
                  # Delete any existing contents of the repo directory if it exists.
                  #
                  # We don't just "rm -rf ${CHECKOUT_DIR}" because ${CHECKOUT_DIR} might be "/"
                  # or the root of a mounted volume.
                  if [ -d "${CHECKOUT_DIR}" ] ; then
                    # Delete non-hidden files and directories
                    rm -rf "${CHECKOUT_DIR:?}"/*
                    # Delete files and directories starting with . but excluding ..
                    rm -rf "${CHECKOUT_DIR}"/.[!.]*
                    # Delete files and directories starting with .. plus any other character
                    rm -rf "${CHECKOUT_DIR}"/..?*
                  fi
                }


                if [ "${PARAM_DELETE_EXISTING}" = "true" ] ; then
                  cleandir
                fi


                test -z "${PARAM_HTTP_PROXY}" || export
                HTTP_PROXY="${PARAM_HTTP_PROXY}"

                test -z "${PARAM_HTTPS_PROXY}" || export
                HTTPS_PROXY="${PARAM_HTTPS_PROXY}"

                test -z "${PARAM_NO_PROXY}" || export
                NO_PROXY="${PARAM_NO_PROXY}"


                /ko-app/git-init \
                  -url="${PARAM_URL}" \
                  -revision="${PARAM_REVISION}" \
                  -refspec="${PARAM_REFSPEC}" \
                  -path="${CHECKOUT_DIR}" \
                  -sslVerify="${PARAM_SSL_VERIFY}" \
                  -submodules="${PARAM_SUBMODULES}" \
                  -depth="${PARAM_DEPTH}" \
                  -sparseCheckoutDirectories="${PARAM_SPARSE_CHECKOUT_DIRECTORIES}"
                cd "${CHECKOUT_DIR}"

                RESULT_SHA="$(git rev-parse HEAD)"

                EXIT_CODE="$?"

                if [ "${EXIT_CODE}" != 0 ] ; then
                  exit "${EXIT_CODE}"
                fi

                printf "%s" "${RESULT_SHA}" > "$(results.commit.path)"

                printf "%s" "${PARAM_URL}" > "$(results.url.path)"
          workspaces:
            - description: >-
                The git repo will be cloned onto the volume backing this
                Workspace.
              name: output
            - description: >
                A .ssh directory with private key, known_hosts, config, etc.
                Copied to

                the user's home before git commands are executed. Used to
                authenticate

                with the git remote when performing the clone. Binding a Secret
                to this

                Workspace is strongly recommended over other volume types.
              name: ssh-directory
              optional: true
            - description: >
                A Workspace containing a .gitconfig and .git-credentials file.
                These

                will be copied to the user's home before any git commands are
                run. Any

                other files in this Workspace are ignored. It is strongly
                recommended

                to use ssh-directory over basic-auth whenever possible and to
                bind a

                Secret to this Workspace over other volume types.
              name: basic-auth
              optional: true
    test-triggers-updated-awmbjt-clone-release-tests-git-sss7j:
      pipelineTaskName: clone-release-tests-git
      status:
        conditions:
          - lastTransitionTime: '2022-02-22T11:10:52Z'
            message: >-
              pod status "Initialized":"False"; message: "containers with
              incomplete status: [place-tools place-scripts]"
            reason: Pending
            status: Unknown
            type: Succeeded
        podName: test-triggers-updated-awmbjt-clone-release-tests-git-sss7-pcqbd
        startTime: '2022-02-22T11:10:52Z'
        steps:
          - container: step-clone
            name: clone
            waiting:
              reason: PodInitializing
        taskSpec:
          description: >-
            These Tasks are Git tasks to work with repositories used by other
            tasks in your Pipeline.

            The git-clone Task will clone a repo from the provided url into the
            output Workspace. By default the repo will be cloned into the root
            of your Workspace. You can clone into a subdirectory by setting this
            Task's subdirectory param. This Task also supports sparse checkouts.
            To perform a sparse checkout, pass a list of comma separated
            directory patterns to this Task's sparseCheckoutDirectories param.
          params:
            - description: Repository URL to clone from.
              name: url
              type: string
            - default: ''
              description: 'Revision to checkout. (branch, tag, sha, ref, etc...)'
              name: revision
              type: string
            - default: ''
              description: Refspec to fetch before checking out revision.
              name: refspec
              type: string
            - default: 'true'
              description: Initialize and fetch git submodules.
              name: submodules
              type: string
            - default: '1'
              description: >-
                Perform a shallow clone, fetching only the most recent N
                commits.
              name: depth
              type: string
            - default: 'true'
              description: >-
                Set the `http.sslVerify` global git config. Setting this to
                `false` is not advised unless you are sure that you trust your
                git remote.
              name: sslVerify
              type: string
            - default: ''
              description: >-
                Subdirectory inside the `output` Workspace to clone the repo
                into.
              name: subdirectory
              type: string
            - default: ''
              description: >-
                Define the directory patterns to match or exclude when
                performing a sparse checkout.
              name: sparseCheckoutDirectories
              type: string
            - default: 'true'
              description: >-
                Clean out the contents of the destination directory if it
                already exists before cloning.
              name: deleteExisting
              type: string
            - default: ''
              description: HTTP proxy server for non-SSL requests.
              name: httpProxy
              type: string
            - default: ''
              description: HTTPS proxy server for SSL requests.
              name: httpsProxy
              type: string
            - default: ''
              description: Opt out of proxying HTTP/HTTPS requests.
              name: noProxy
              type: string
            - default: 'true'
              description: >-
                Log the commands that are executed during `git-clone`'s
                operation.
              name: verbose
              type: string
            - default: >-
                registry.redhat.io/openshift-pipelines/pipelines-git-init-rhel8@sha256:af7dd5b3b1598a980f17d5f5d3d8a4b11ab4f5184677f7f17ad302baa36bd3c1
              description: The image providing the git-init binary that this Task runs.
              name: gitInitImage
              type: string
            - default: /tekton/home
              description: >
                Absolute path to the user's home directory. Set this explicitly
                if you are running the image as a non-root user or have
                overridden

                the gitInitImage param with an image containing custom user
                configuration.
              name: userHome
              type: string
          results:
            - description: The precise commit SHA that was fetched by this Task.
              name: commit
            - description: The precise URL that was fetched by this Task.
              name: url
          steps:
            - env:
                - name: HOME
                  value: $(params.userHome)
                - name: PARAM_URL
                  value: $(params.url)
                - name: PARAM_REVISION
                  value: $(params.revision)
                - name: PARAM_REFSPEC
                  value: $(params.refspec)
                - name: PARAM_SUBMODULES
                  value: $(params.submodules)
                - name: PARAM_DEPTH
                  value: $(params.depth)
                - name: PARAM_SSL_VERIFY
                  value: $(params.sslVerify)
                - name: PARAM_SUBDIRECTORY
                  value: $(params.subdirectory)
                - name: PARAM_DELETE_EXISTING
                  value: $(params.deleteExisting)
                - name: PARAM_HTTP_PROXY
                  value: $(params.httpProxy)
                - name: PARAM_HTTPS_PROXY
                  value: $(params.httpsProxy)
                - name: PARAM_NO_PROXY
                  value: $(params.noProxy)
                - name: PARAM_VERBOSE
                  value: $(params.verbose)
                - name: PARAM_SPARSE_CHECKOUT_DIRECTORIES
                  value: $(params.sparseCheckoutDirectories)
                - name: PARAM_USER_HOME
                  value: $(params.userHome)
                - name: WORKSPACE_OUTPUT_PATH
                  value: $(workspaces.output.path)
                - name: WORKSPACE_SSH_DIRECTORY_BOUND
                  value: $(workspaces.ssh-directory.bound)
                - name: WORKSPACE_SSH_DIRECTORY_PATH
                  value: $(workspaces.ssh-directory.path)
                - name: WORKSPACE_BASIC_AUTH_DIRECTORY_BOUND
                  value: $(workspaces.basic-auth.bound)
                - name: WORKSPACE_BASIC_AUTH_DIRECTORY_PATH
                  value: $(workspaces.basic-auth.path)
              image: $(params.gitInitImage)
              name: clone
              resources: {}
              script: >
                #!/usr/bin/env sh

                set -eu


                if [ "${PARAM_VERBOSE}" = "true" ] ; then
                  set -x
                fi


                if [ "${WORKSPACE_BASIC_AUTH_DIRECTORY_BOUND}" = "true" ] ; then
                  cp "${WORKSPACE_BASIC_AUTH_DIRECTORY_PATH}/.git-credentials" "${PARAM_USER_HOME}/.git-credentials"
                  cp "${WORKSPACE_BASIC_AUTH_DIRECTORY_PATH}/.gitconfig" "${PARAM_USER_HOME}/.gitconfig"
                  chmod 400 "${PARAM_USER_HOME}/.git-credentials"
                  chmod 400 "${PARAM_USER_HOME}/.gitconfig"
                fi


                if [ "${WORKSPACE_SSH_DIRECTORY_BOUND}" = "true" ] ; then
                  cp -R "${WORKSPACE_SSH_DIRECTORY_PATH}" "${PARAM_USER_HOME}"/.ssh
                  chmod 700 "${PARAM_USER_HOME}"/.ssh
                  chmod -R 400 "${PARAM_USER_HOME}"/.ssh/*
                fi


                CHECKOUT_DIR="${WORKSPACE_OUTPUT_PATH}/${PARAM_SUBDIRECTORY}"


                cleandir() {
                  # Delete any existing contents of the repo directory if it exists.
                  #
                  # We don't just "rm -rf ${CHECKOUT_DIR}" because ${CHECKOUT_DIR} might be "/"
                  # or the root of a mounted volume.
                  if [ -d "${CHECKOUT_DIR}" ] ; then
                    # Delete non-hidden files and directories
                    rm -rf "${CHECKOUT_DIR:?}"/*
                    # Delete files and directories starting with . but excluding ..
                    rm -rf "${CHECKOUT_DIR}"/.[!.]*
                    # Delete files and directories starting with .. plus any other character
                    rm -rf "${CHECKOUT_DIR}"/..?*
                  fi
                }


                if [ "${PARAM_DELETE_EXISTING}" = "true" ] ; then
                  cleandir
                fi


                test -z "${PARAM_HTTP_PROXY}" || export
                HTTP_PROXY="${PARAM_HTTP_PROXY}"

                test -z "${PARAM_HTTPS_PROXY}" || export
                HTTPS_PROXY="${PARAM_HTTPS_PROXY}"

                test -z "${PARAM_NO_PROXY}" || export
                NO_PROXY="${PARAM_NO_PROXY}"


                /ko-app/git-init \
                  -url="${PARAM_URL}" \
                  -revision="${PARAM_REVISION}" \
                  -refspec="${PARAM_REFSPEC}" \
                  -path="${CHECKOUT_DIR}" \
                  -sslVerify="${PARAM_SSL_VERIFY}" \
                  -submodules="${PARAM_SUBMODULES}" \
                  -depth="${PARAM_DEPTH}" \
                  -sparseCheckoutDirectories="${PARAM_SPARSE_CHECKOUT_DIRECTORIES}"
                cd "${CHECKOUT_DIR}"

                RESULT_SHA="$(git rev-parse HEAD)"

                EXIT_CODE="$?"

                if [ "${EXIT_CODE}" != 0 ] ; then
                  exit "${EXIT_CODE}"
                fi

                printf "%s" "${RESULT_SHA}" > "$(results.commit.path)"

                printf "%s" "${PARAM_URL}" > "$(results.url.path)"
          workspaces:
            - description: >-
                The git repo will be cloned onto the volume backing this
                Workspace.
              name: output
            - description: >
                A .ssh directory with private key, known_hosts, config, etc.
                Copied to

                the user's home before git commands are executed. Used to
                authenticate

                with the git remote when performing the clone. Binding a Secret
                to this

                Workspace is strongly recommended over other volume types.
              name: ssh-directory
              optional: true
            - description: >
                A Workspace containing a .gitconfig and .git-credentials file.
                These

                will be copied to the user's home before any git commands are
                run. Any

                other files in this Workspace are ignored. It is strongly
                recommended

                to use ssh-directory over basic-auth whenever possible and to
                bind a

                Secret to this Workspace over other volume types.
              name: basic-auth
              optional: true
    test-triggers-updated-awmbjt-generate-build-artifacts-958rj:
      conditionChecks:
        test-triggers-updated-awmbjt-generate-build-artifacts-958-rsrrm:
          conditionName: check-for-operator-environment-0
      pipelineTaskName: generate-build-artifacts
    test-triggers-updated-awmbjt-generate-ids-zpqjx:
      pipelineTaskName: generate-ids
      status:
        conditions:
          - lastTransitionTime: '2022-02-22T11:10:57Z'
            message: Not all Steps in the Task have finished executing
            reason: Running
            status: Unknown
            type: Succeeded
        podName: test-triggers-updated-awmbjt-generate-ids-zpqjx-pod-s9zxt
        startTime: '2022-02-22T11:10:50Z'
        steps:
          - container: step-generate
            imageID: >-
              registry.access.redhat.com/ubi8/ubi-minimal@sha256:3aa3f379a81013bd3264faa0af87d201cdaa5981050d78c567b48fdfd5b38bb8
            name: generate
            running:
              startedAt: '2022-02-22T11:10:56Z'
        taskSpec:
          params:
            - default: ''
              description: >
                Prefix of cluster name, the suffix will be generated in this
                task and published as a result

                (e.g. cluster will be transformed to cluster052799). Note, on
                OpenStack there is a limit

                of 14 characters in total therefore prefix can be only 8
                characters long.
              name: CLUSTER_NAME_PREFIX
              type: string
            - description: |
                Task run or pipeline run name.
              name: RUN_NAME
              type: string
          results:
            - description: Full cluster name (e.g. )
              name: cluster-name
            - description: Path for uploading all artifacts from given pipeline run.
              name: path
            - description: >-
                Full URL where all artifacts from given pipeline run will be
                uploaded.
              name: url
          steps:
            - env:
                - name: UPLOADER_HOST
                  valueFrom:
                    secretKeyRef:
                      key: uploader-host
                      name: uploader
              image: registry.access.redhat.com/ubi8/ubi-minimal
              name: generate
              resources: {}
              script: >
                #!/usr/bin/env bash

                set -e


                curr_ts=`date +"%y%m%d-%H%M%S"`

                run_name=`sed 's/-[0-9a-z]\{5,6\}$//' <<< $(params.RUN_NAME)`

                cluster_suffix=`date +"%m%d%2N"`


                if [ ! -z $(params.CLUSTER_NAME_PREFIX) ]; then
                  echo -n $(params.CLUSTER_NAME_PREFIX)${cluster_suffix} | tee $(results.cluster-name.path)
                  echo
                fi

                echo -n CI/${run_name}/${curr_ts} | tee $(results.path.path)

                echo

                echo -n ${UPLOADER_HOST}/CI/${run_name}/${curr_ts} | tee
                $(results.url.path)
