chore: added jq to step
This commit is contained in:
@@ -266,7 +266,9 @@ spec:
|
||||
- name: SCRIPT
|
||||
value: |
|
||||
#!/usr/bin/env bash
|
||||
INPUTSRC=$(oc -n $(tasks.ephemeral-ns.results.namespace) get scaledjob/conversion-engine -o json | jq '.spec.jobTargetRef.template.spec.initContainers[0].env[] | select(.name == "sourcefile").value'))
|
||||
wget "https://github.com/jqlang/jq/releases/download/jq-1.7/jq-linux-amd64" -o /usr/local/bin/jq
|
||||
chmod +x /usr/local/bin/jq
|
||||
INPUTSRC=$(oc -n $(tasks.ephemeral-ns.results.namespace) get scaledjob/conversion-engine -o json | /usr/local/bin/jq -r '.spec.jobTargetRef.template.spec.initContainers[0].env[] | select(.name == "sourcefile").value')
|
||||
echo -n "${INPUTSRC}" > $(results.filedrop.path)
|
||||
workspaces:
|
||||
- name: kubeconfig-dir
|
||||
|
||||
Reference in New Issue
Block a user