You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I am trying to use sprig template to manipulate response values from bitbucket webhook. I am seeing the entire json response when sprig template(dataTemplate) is being used, but dataKey works just fine. Argo events is installed through kustomize by refering to direct git url so I assume it will be the latest version. Below is the configurations, let me know if more info is needed. Thanks in advance for the help!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello, I am trying to use sprig template to manipulate response values from bitbucket webhook. I am seeing the entire json response when sprig template(dataTemplate) is being used, but dataKey works just fine. Argo events is installed through kustomize by refering to direct git url so I assume it will be the latest version. Below is the configurations, let me know if more info is needed. Thanks in advance for the help!
parameters:
- src:
dependencyName: bitbucket
dataTemplate: '{{ body.repository.links.clone.1.href | replace "https" "git" }}'
dest: spec.templates.0.dag.tasks.0.arguments.parameters.0.value
- src:
dependencyName: bitbucket
dataKey: body.changes.0.ref.id
dest: spec.templates.0.dag.tasks.0.arguments.parameters.1.value
- src:
dependencyName: bitbucket
dataKey: body.changes.0.toHash
dest: spec.templates.0.dag.tasks.0.arguments.parameters.2.value
- src:
dependencyName: bitbucket
dataTemplate: "{{ .Input.body.changes.0.toHash | title }}"
dest: spec.templates.0.dag.tasks.0.arguments.parameters.4.value
Beta Was this translation helpful? Give feedback.
All reactions