Use heredocs instead of jq.
This commit is contained in:
1 parent
fc6a3c9c63
commit
b373fca18c
4 files changed
+101
-13
No files matched your search
@@ -0,0 +1,57 @@
|
||||
# A pipeline to test the infrasture around calling pipelines.
|
||||
---
|
||||
apiVersion: tekton.dev/v1beta1
|
||||
kind: Pipeline
|
||||
metadata:
|
||||
name: test-report-pipeline
|
||||
namespace: j7s-ci
|
||||
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.jpace121.net:2222/tests/job-test
|
||||
- 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: notify-onedev
|
||||
params:
|
||||
- name: tekton-login-secret-name
|
||||
value: onedev-api-key
|
||||
- name: feedback-url
|
||||
value: https://git.jpace121.net/
|
||||
- name: project-id
|
||||
value: 9
|
||||
- name: run-name
|
||||
value: $(context.pipelineRun.name)
|
||||
- name: status
|
||||
value: $(tasks.status)
|
||||
taskRef:
|
||||
name: j7s-onedev-file-bug
|
||||
Reference in new issue
Block a user