# A pipeline to test the infrastructure around calling pipelines. --- apiVersion: tekton.dev/v1beta1 kind: Pipeline metadata: name: test-pipeline spec: description: "A test pipeline." workspaces: - name: shared-data description: Shared data. - name: git-credentials description: tekton git credentials tasks: - name: fetch-repo workspaces: - name: output workspace: shared-data - name: ssh-directory workspace: git-credentials params: - name: url value: ssh://git@git.jpace121.net:2222/tests/job-test.git - name: branch value: master taskRef: name: j7s-git-clone - name: cat-readme runAfter: ["fetch-repo"] workspaces: - name: source workspace: shared-data taskSpec: workspaces: - name: source steps: - image: docker.io/debian:bullseye-slim script: | set -x cat $(workspaces.source.path)/README.md exit -1 finally: - name: gitea-status params: - name: git-owner value: tests - name: git-repo-name value: job-test - name: name value: test/test-pipeline - name: sha value: $(tasks.fetch-repo.results.hash) - name: status value: $(tasks.status) taskRef: name: j7s-gitea-status